Index: lib/prefs.js |
=================================================================== |
--- a/lib/prefs.js |
+++ b/lib/prefs.js |
@@ -50,11 +50,11 @@ |
{ |
if (value === null) |
{ |
- if (key in localStorage) |
+ if (key in ext.storage) |
{ |
try |
{ |
- value = JSON.parse(localStorage[key]); |
+ value = JSON.parse(ext.storage[key]); |
} |
catch(e) |
{ |
@@ -74,9 +74,9 @@ |
let stringified = JSON.stringify(newValue); |
if (stringified != JSON.stringify(defaults[key])) |
- localStorage[key] = stringified; |
+ ext.storage[key] = stringified; |
else |
- delete localStorage[key]; |
+ delete ext.storage[key]; |
value = newValue; |