aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorStephen Blott2015-06-01 09:52:04 +0100
committerStephen Blott2015-06-01 09:52:04 +0100
commit83fefcae893f9ba57f291681f7b0328e6ee41db0 (patch)
treee682902f3b50b3f785578dc1531be7f3e6ae2ec5 /lib
parente8476682362b9648aba874e8581fe9076479f734 (diff)
downloadvimium-83fefcae893f9ba57f291681f7b0328e6ee41db0.tar.bz2
Only propagate changes from chrome.storage.sync.
Diffstat (limited to 'lib')
-rw-r--r--lib/settings.coffee5
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.