Skip to content

Commit 1c625d4

Browse files
committed
bit of cleanup + linting fixes
1 parent 932b24a commit 1c625d4

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.eslintrc

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
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
}

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ node_modules: package.json
4040
@touch node_modules
4141

4242
lint: .FORCE
43-
eslint debug.js
43+
eslint browser.js debug.js index.js node.js
4444

4545
test: .FORCE
4646
mocha

browser.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ exports.formatArgs = formatArgs;
1010
exports.save = save;
1111
exports.load = load;
1212
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
1616
: localstorage();
1717

1818
/**
@@ -148,7 +148,6 @@ function save(namespaces) {
148148
*/
149149

150150
function load() {
151-
var r;
152151
try {
153152
return exports.storage.debug;
154153
} catch(e) {}

0 commit comments

Comments
 (0)