From 5797460cd2f96fd41cbca793573a9d60e12cd949 Mon Sep 17 00:00:00 2001 From: Joe Jarvis Date: Thu, 28 Jun 2018 13:50:44 -0400 Subject: [PATCH] Clear sync before setting --- extension/options.js | 1 + 1 file changed, 1 insertion(+) diff --git a/extension/options.js b/extension/options.js index 53cf80b..ad4255c 100644 --- a/extension/options.js +++ b/extension/options.js @@ -131,6 +131,7 @@ function changeBadgeColor() { async function uploadToSync() { var res = await browser.storage.local.get(); + await browser.storage.sync.clear(); browser.storage.sync.set(res); }