File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99 "node": true
1010 },
1111 "rules": {
12- "no-console": 0
12+ "no-console": 0,
13+ "no-empty": [1, { "allowEmptyCatch": true }]
1314 },
1415 "extends": "eslint:recommended"
1516}
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ node_modules: package.json
4040 @touch node_modules
4141
4242lint : .FORCE
43- eslint debug.js
43+ eslint browser.js debug.js index.js node .js
4444
4545test : .FORCE
4646 mocha
Original file line number Diff line number Diff line change @@ -10,9 +10,9 @@ exports.formatArgs = formatArgs;
1010exports . save = save ;
1111exports . load = load ;
1212exports . 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
1616 : localstorage ( ) ;
1717
1818/**
@@ -148,7 +148,6 @@ function save(namespaces) {
148148 */
149149
150150function load ( ) {
151- var r ;
152151 try {
153152 return exports . storage . debug ;
154153 } catch ( e ) { }
You can’t perform that action at this time.
0 commit comments