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

12 lines
261 B
JavaScript
Raw Permalink Normal View History

2024-05-03 12:40:35 +03:00
/* global chrome */
window.addEventListener("message", function ({ data }) {
if (data.from === "discuss") {
chrome.runtime.sendMessage(data);
}
});
chrome.runtime.onMessage.addListener(function (request) {
window.postMessage(request);
});