about summary refs log tree commit diff stats
path: root/src/pages/background
diff options
context:
space:
mode:
Diffstat (limited to 'src/pages/background')
-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