mirror of
https://github.com/debug-js/debug.git
synced 2026-01-18 16:12:38 +00:00
bit of cleanup + linting fixes
This commit is contained in:
parent
932b24a685
commit
1c625d4578
@ -9,7 +9,8 @@
|
||||
"node": true
|
||||
},
|
||||
"rules": {
|
||||
"no-console": 0
|
||||
"no-console": 0,
|
||||
"no-empty": [1, { "allowEmptyCatch": true }]
|
||||
},
|
||||
"extends": "eslint:recommended"
|
||||
}
|
||||
|
||||
2
Makefile
2
Makefile
@ -40,7 +40,7 @@ node_modules: package.json
|
||||
@touch node_modules
|
||||
|
||||
lint: .FORCE
|
||||
eslint debug.js
|
||||
eslint browser.js debug.js index.js node.js
|
||||
|
||||
test: .FORCE
|
||||
mocha
|
||||
|
||||
@ -10,9 +10,9 @@ exports.formatArgs = formatArgs;
|
||||
exports.save = save;
|
||||
exports.load = load;
|
||||
exports.useColors = useColors;
|
||||
exports.storage = 'undefined' != typeof chrome
|
||||
&& 'undefined' != typeof chrome.storage
|
||||
? chrome.storage.local
|
||||
exports.storage = 'undefined' != typeof window.chrome
|
||||
&& 'undefined' != typeof window.chrome.storage
|
||||
? window.chrome.storage.local
|
||||
: localstorage();
|
||||
|
||||
/**
|
||||
@ -148,7 +148,6 @@ function save(namespaces) {
|
||||
*/
|
||||
|
||||
function load() {
|
||||
var r;
|
||||
try {
|
||||
return exports.storage.debug;
|
||||
} catch(e) {}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user