From ac648a0e9f53c2fc359daa68309c25dd8c9db031 Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Mon, 9 Feb 2015 11:09:19 +0000 Subject: Fix syncing bug. This fixes a second dumb error I made in #1456. --- background_scripts/sync.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'background_scripts') diff --git a/background_scripts/sync.coffee b/background_scripts/sync.coffee index f1850438..ad59f958 100644 --- a/background_scripts/sync.coffee +++ b/background_scripts/sync.coffee @@ -62,7 +62,8 @@ root.Sync = Sync = # No need to propagate updates to the rest of vimium, that's already been done. set: (key, value) -> if @shouldSyncKey key - @storage.set key: value + setting = {}; setting[key] = value + @storage.set setting # Only called synchronously from within vimium, never on a callback. clear: (key) -> -- cgit v1.2.3