mirror of
https://github.com/debug-js/debug.git
synced 2026-01-18 16:12:38 +00:00
browser: don't default save() to empty string
This commit is contained in:
parent
bea76f587b
commit
3314c7761c
@ -55,9 +55,9 @@ function save(namespaces) {
|
||||
*/
|
||||
|
||||
function load() {
|
||||
var r = '';
|
||||
var r;
|
||||
try {
|
||||
r = localStorage.debug || '';
|
||||
r = localStorage.debug;
|
||||
} catch(e) {}
|
||||
return r;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user