Commit 1c625d4 1 parent 932b24a commit 1c625d4 Copy full SHA for 1c625d4
File tree 3 files changed +6
-6
lines changed
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 9
9
"node": true
10
10
},
11
11
"rules": {
12
- "no-console": 0
12
+ "no-console": 0,
13
+ "no-empty": [1, { "allowEmptyCatch": true }]
13
14
},
14
15
"extends": "eslint:recommended"
15
16
}
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ node_modules: package.json
40
40
@touch node_modules
41
41
42
42
lint : .FORCE
43
- eslint debug.js
43
+ eslint browser.js debug.js index.js node .js
44
44
45
45
test : .FORCE
46
46
mocha
Original file line number Diff line number Diff line change @@ -10,9 +10,9 @@ exports.formatArgs = formatArgs;
10
10
exports . save = save ;
11
11
exports . load = load ;
12
12
exports . useColors = useColors ;
13
- exports . storage = 'undefined' != typeof chrome
14
- && 'undefined' != typeof chrome . storage
15
- ? chrome . storage . local
13
+ exports . storage = 'undefined' != typeof window . chrome
14
+ && 'undefined' != typeof window . chrome . storage
15
+ ? window . chrome . storage . local
16
16
: localstorage ( ) ;
17
17
18
18
/**
@@ -148,7 +148,6 @@ function save(namespaces) {
148
148
*/
149
149
150
150
function load ( ) {
151
- var r ;
152
151
try {
153
152
return exports . storage . debug ;
154
153
} catch ( e ) { }
You can’t perform that action at this time.
0 commit comments