From 7ed5085f1099e9818085022c82ae14e3a2e5fdb4 Mon Sep 17 00:00:00 2001 From: Kendall Werts Date: Mon, 10 Feb 2020 12:38:17 -0600 Subject: [PATCH] changed window attachment of sync to be more clear --- src/js/background/sync.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/js/background/sync.js b/src/js/background/sync.js index 847b7a1..b34ea00 100644 --- a/src/js/background/sync.js +++ b/src/js/background/sync.js @@ -1,6 +1,6 @@ const SYNC_DEBUG = false; -window.sync = { +const sync = { storageArea: { area: browser.storage.sync, @@ -308,6 +308,9 @@ window.sync = { }; +// attaching to window for use in mocha tests +window.sync = sync; + sync.init(); async function restore() {