mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-10 01:29:58 +00:00
Change message subject format and rename some messages
This commit is contained in:
@@ -26,7 +26,8 @@ browser.runtime.onConnect.addListener(port => {
|
||||
});
|
||||
|
||||
document.addEventListener("__castMessageResponse", ev => {
|
||||
if (ev.detail.destination === "popup") {
|
||||
const [ destination ] = ev.detail.subject.split(":/");
|
||||
if (destination === "popup") {
|
||||
if (popupPort) {
|
||||
popupPort.postMessage(ev.detail);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user