aboutsummaryrefslogtreecommitdiff
path: root/src/content/MessageListener.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/MessageListener.ts')
-rw-r--r--src/content/MessageListener.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/content/MessageListener.ts b/src/content/MessageListener.ts
index 3fe1dcd..ec6940b 100644
--- a/src/content/MessageListener.ts
+++ b/src/content/MessageListener.ts
@@ -27,7 +27,7 @@ export default class MessageListener {
) {
browser.runtime.onMessage.addListener(
(msg: any, sender: WebExtMessageSender) => {
- return listener(valueOf(msg), sender);
+ return Promise.resolve(listener(valueOf(msg), sender));
}
);
}