From 456b65af823b0a62dafe4ccb1b628e56be9cd51e Mon Sep 17 00:00:00 2001 From: ManeraKai Date: Sat, 28 May 2022 11:00:48 +0300 Subject: Fixed Unify Settings not working for localStorage. Fixed other things --- src/pages/background/background.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/pages/background/background.js') diff --git a/src/pages/background/background.js b/src/pages/background/background.js index aef21cd3..16083ebe 100644 --- a/src/pages/background/background.js +++ b/src/pages/background/background.js @@ -239,6 +239,7 @@ browser.contextMenus.onClicked.addListener( } ); -browser.runtime.onMessage.addListener(message => { - if (message.function === 'unify') utils.unify(); -}); +browser.runtime.onMessage.addListener((message, sender, sendResponse) => { + if (message.function === 'unify') utils.unify(false).then(r => sendResponse({ response: r })) + return true; +}); \ No newline at end of file -- cgit 1.4.1