Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ff1aef commit 8415064Copy full SHA for 8415064
lib/settings.coffee
@@ -6,6 +6,11 @@ Settings =
6
onLoadedCallbacks: []
7
8
init: ->
9
+ if Utils.isExtensionPage()
10
+ # On extension pages, we use localStorage (or a copy of it) as the cache.
11
+ @cache = if Utils.isBackgroundPage() then localStorage else extend {}, localStorage
12
+ @onLoaded()
13
+
14
chrome.storage.local.get null, (localItems) =>
15
localItems = {} if chrome.runtime.lastError
16
@storage.get null, (syncedItems) =>
0 commit comments