Index: firstRun.js |
=================================================================== |
--- a/firstRun.js |
+++ b/firstRun.js |
@@ -70,14 +70,17 @@ |
updateSocialLinks(); |
- ext.onMessage.addListener((message) => |
+ let port = browser.runtime.connect({name: "ui"}); |
saroyanm
2018/03/07 17:49:44
We probably need to update the Mock polyfill as we
Thomas Greiner
2018/03/07 19:19:39
Done. Since the issue doesn't occur in the test en
|
+ |
+ port.onMessage.addListener((message) => |
{ |
if (message.type == "subscriptions.respond") |
{ |
updateSocialLinks(); |
} |
}); |
- browser.runtime.sendMessage({ |
+ |
+ port.postMessage({ |
type: "subscriptions.listen", |
filter: ["added", "removed", "updated", "disabled"] |
}); |