mail/push-to-talk-extension/content.js
Данил Воробьев 6e6f15d803 initial commit
2024-05-03 09:40:35 +00:00

12 lines
261 B
JavaScript

/* global chrome */
window.addEventListener("message", function ({ data }) {
if (data.from === "discuss") {
chrome.runtime.sendMessage(data);
}
});
chrome.runtime.onMessage.addListener(function (request) {
window.postMessage(request);
});