From 83fefcae893f9ba57f291681f7b0328e6ee41db0 Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Mon, 1 Jun 2015 09:52:04 +0100 Subject: Only propagate changes from chrome.storage.sync. --- lib/settings.coffee | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib') 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. -- cgit v1.2.3