From dd2b8ed0918fcdece1a37b28d4f6351723bf83f9 Mon Sep 17 00:00:00 2001 From: eight Date: Thu, 4 Oct 2018 17:18:38 +0800 Subject: [PATCH] Fix: type error --- js/prefs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/prefs.js b/js/prefs.js index 889d5825..5703e370 100644 --- a/js/prefs.js +++ b/js/prefs.js @@ -240,7 +240,7 @@ var prefs = (() => { function syncPrefs() { // FIXME: we always set the entire object? Ideally, this should only use `changes`. - chrome.sync.set('settings', values); + chrome.storage.sync.set({settings: values}); } function equal(a, b) {