mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-10 01:29:58 +00:00
Remove WebComponents polyfill
This commit is contained in:
@@ -6,18 +6,6 @@ import { onMessageResponse, sendMessage } from "./eventMessageChannel";
|
||||
import messaging, { Message } from "../messaging";
|
||||
|
||||
|
||||
const { isFramework }
|
||||
: { isFramework: boolean } = (window as any);
|
||||
|
||||
/**
|
||||
* Framework API library requires webcomponents for the cast
|
||||
* button custom element (<google-cast-launcher>).
|
||||
*/
|
||||
if (isFramework) {
|
||||
loadScript(browser.runtime.getURL("vendor/webcomponents-lite.js"));
|
||||
}
|
||||
|
||||
|
||||
// Message port to background script
|
||||
export const backgroundPort = messaging.connect({ name: "shim" });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user