diff options
| author | mrmr1993 | 2017-02-08 17:42:25 +0000 | 
|---|---|---|
| committer | mrmr1993 | 2017-04-16 15:24:15 +0100 | 
| commit | 905fc2d147d1bc656c9e9fec74cda364a686d638 (patch) | |
| tree | 38159a4a20eb0e1da45595d1d0090eceee3f78ba /background_scripts | |
| parent | f4f017b8fd496b1b4ccd79504ca76cc144cc233e (diff) | |
| download | vimium-905fc2d147d1bc656c9e9fec74cda364a686d638.tar.bz2 | |
Fallback to storage.local if storage.sync is not available
Diffstat (limited to 'background_scripts')
| -rw-r--r-- | background_scripts/marks.coffee | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/background_scripts/marks.coffee b/background_scripts/marks.coffee index 33c467a7..a6491b9e 100644 --- a/background_scripts/marks.coffee +++ b/background_scripts/marks.coffee @@ -30,7 +30,7 @@ Marks =    saveMark: (markInfo) ->      item = {}      item[@getLocationKey markInfo.markName] = markInfo -    chrome.storage.sync.set item +    Settings.storage.set item    # Goto a global mark.  We try to find the original tab.  If we can't find that, then we try to find another    # tab with the original URL, and use that.  And if we can't find such an existing tab, then we create a new @@ -39,7 +39,7 @@ Marks =      chrome.storage.local.get "vimiumSecret", (items) =>        vimiumSecret = items.vimiumSecret        key = @getLocationKey req.markName -      chrome.storage.sync.get key, (items) => +      Settings.storage.get key, (items) =>          markInfo = items[key]          if markInfo.vimiumSecret != vimiumSecret            # This is a different Vimium instantiation, so markInfo.tabId is definitely out of date. | 
