Skip to content

Commit c1b0c6e

Browse files
committed
browser: use removeItem() to clear localStorage
1 parent 462c3b2 commit c1b0c6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

browser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ function log() {
104104
function save(namespaces) {
105105
try {
106106
if (null == namespaces) {
107-
delete localStorage.debug;
107+
localStorage.removeItem('debug');
108108
} else {
109109
localStorage.debug = namespaces;
110110
}

0 commit comments

Comments
 (0)