diff options
| author | Stephen Blott | 2015-06-17 07:57:49 +0100 | 
|---|---|---|
| committer | Stephen Blott | 2015-06-17 07:57:49 +0100 | 
| commit | 84150641a236b30fe5f9c36a0249dbba54dc6166 (patch) | |
| tree | 24e01f27489510fef30a84b39da90131257d885e | |
| parent | 8ff1aef751a533c17e683207dae1eb165b210f92 (diff) | |
| download | vimium-84150641a236b30fe5f9c36a0249dbba54dc6166.tar.bz2 | |
Reinstate unintentionally deleted code.
| -rw-r--r-- | lib/settings.coffee | 5 | 
1 files changed, 5 insertions, 0 deletions
| diff --git a/lib/settings.coffee b/lib/settings.coffee index adbe2bef..f0cf30f1 100644 --- a/lib/settings.coffee +++ b/lib/settings.coffee @@ -6,6 +6,11 @@ Settings =    onLoadedCallbacks: []    init: -> +    if Utils.isExtensionPage() +      # On extension pages, we use localStorage (or a copy of it) as the cache. +      @cache = if Utils.isBackgroundPage() then localStorage else extend {}, localStorage +      @onLoaded() +      chrome.storage.local.get null, (localItems) =>        localItems = {} if chrome.runtime.lastError        @storage.get null, (syncedItems) => | 
