mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-11 18:19:58 +00:00
Fix __onGCastApiAvailable being called early
This commit is contained in:
@@ -3,12 +3,11 @@
|
||||
import { Message } from "../types";
|
||||
import { onMessageResponse, sendMessage } from "./messageBridge";
|
||||
|
||||
import { loadScript } from "../lib/utils";
|
||||
|
||||
|
||||
if ((window as any)._isFramework) {
|
||||
const polyfillScriptElement = document.createElement("script");
|
||||
polyfillScriptElement.src = browser.runtime.getURL(
|
||||
"vendor/webcomponents-lite.js")
|
||||
document.head.append(polyfillScriptElement);
|
||||
loadScript(browser.runtime.getURL("vendor/webcomponents-lite.js"));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user