diff options
| author | Stephen Blott | 2015-06-01 09:52:04 +0100 | 
|---|---|---|
| committer | Stephen Blott | 2015-06-01 09:52:04 +0100 | 
| commit | 83fefcae893f9ba57f291681f7b0328e6ee41db0 (patch) | |
| tree | e682902f3b50b3f785578dc1531be7f3e6ae2ec5 | |
| parent | e8476682362b9648aba874e8581fe9076479f734 (diff) | |
| download | vimium-83fefcae893f9ba57f291681f7b0328e6ee41db0.tar.bz2 | |
Only propagate changes from chrome.storage.sync.
| -rw-r--r-- | lib/settings.coffee | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/lib/settings.coffee b/lib/settings.coffee index 87fefd95..040c1697 100644 --- a/lib/settings.coffee +++ b/lib/settings.coffee @@ -27,8 +27,9 @@ Sync =    # Asynchronous message from synced storage.    handleStorageUpdate: (changes, area) -> -    for own key, change of changes -      Settings.storeAndPropagate key, change?.newValue if @shouldSyncKey key +    if area == "sync" +      for own key, change of changes +        Settings.storeAndPropagate key, change?.newValue if @shouldSyncKey key    # Only called synchronously from within vimium, never on a callback.    # No need to propagate updates to the rest of vimium, that's already been done. | 
