about summary refs log tree commit diff stats
path: root/src/pages/background/background.js
diff options
context:
space:
mode:
authorManeraKai <manerakai@protonmail.com>2022-05-28 11:00:48 +0300
committerManeraKai <manerakai@protonmail.com>2022-05-28 11:00:48 +0300
commit456b65af823b0a62dafe4ccb1b628e56be9cd51e (patch)
tree56deea43dbb3bf2d636624351832c89fb8440216 /src/pages/background/background.js
parentMerge branch 'master' of https://github.com/libredirect/libredirect (diff)
downloadlibredirect-456b65af823b0a62dafe4ccb1b628e56be9cd51e.zip
Fixed Unify Settings not working for localStorage. Fixed other things
Diffstat (limited to 'src/pages/background/background.js')
-rw-r--r--src/pages/background/background.js7
1 files changed, 4 insertions, 3 deletions
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