diff options
Diffstat (limited to 'e2e/ambassador/src/background/ipc.js')
-rw-r--r-- | e2e/ambassador/src/background/ipc.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/e2e/ambassador/src/background/ipc.js b/e2e/ambassador/src/background/ipc.js new file mode 100644 index 0000000..95d2164 --- /dev/null +++ b/e2e/ambassador/src/background/ipc.js @@ -0,0 +1,7 @@ +const receiveContentMessage = (func) => { + browser.runtime.onMessage.addListener((message) => { + return func(message); + }); +}; + +export { receiveContentMessage }; |