Debian Codegraph @

addons/mail/push-to-talk-extension/content.js

raw
1 /* global chrome */
2
3 // https://chromewebstore.google.com/detail/discuss-push-to-talk/mdiacebcbkmjjlpclnbcgiepgifcnpmg
4 const EXT_ID = "mdiacebcbkmjjlpclnbcgiepgifcnpmg";
5
6 chrome.runtime.onMessage.addListener(function (request, sender) {
7 if (location.origin !== "null" && sender.id === EXT_ID) {
8 window.postMessage(request, location.origin);
9 }
10 });