|
1
|
|
|
// Copyright © 2017 Tangdongxin |
|
2
|
|
|
|
|
3
|
|
|
// Permission is hereby granted, free of charge, to any person obtaining |
|
4
|
|
|
// a copy of this software and associated documentation files (the "Software"), |
|
5
|
|
|
// to deal in the Software without restriction, including without limitation |
|
6
|
|
|
// the rights to use, copy, modify, merge, publish, distribute, sublicense, |
|
7
|
|
|
// and/or sell copies of the Software, and to permit persons to whom the |
|
8
|
|
|
// Software is furnished to do so, subject to the following conditions: |
|
9
|
|
|
|
|
10
|
|
|
// The above copyright notice and this permission notice shall be included |
|
11
|
|
|
// in all copies or substantial portions of the Software. |
|
12
|
|
|
|
|
13
|
|
|
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
|
14
|
|
|
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
|
15
|
|
|
// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
|
16
|
|
|
// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, |
|
17
|
|
|
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, |
|
18
|
|
|
// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE |
|
19
|
|
|
// OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
|
20
|
|
|
|
|
21
|
|
|
|
|
22
|
|
|
// =========================================== |
|
23
|
|
|
// WORK FLOW |
|
24
|
|
|
// =========================================== |
|
25
|
|
|
var getting = browser.storage.local.get(); |
|
|
|
|
|
|
26
|
|
|
getting.then(onConfig, onError) |
|
|
|
|
|
|
27
|
|
|
.then(onParse, onError) |
|
|
|
|
|
|
28
|
|
|
.then(onRenovate, onError); |
|
|
|
|
|
|
29
|
|
|
|
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.