mirror of
https://github.com/tuna/mirror-web.git
synced 2025-12-25 20:32:46 +00:00
15 lines
494 B
JavaScript
15 lines
494 B
JavaScript
import "promise-polyfill/src/polyfill";
|
|
import "whatwg-fetch";
|
|
import "events-polyfill/src";
|
|
import "@webcomponents/template";
|
|
import "element-polyfill";
|
|
import Es6ProxyPolyfill from "./es6-proxy-polyfill.js";
|
|
|
|
const globalObj =
|
|
(typeof globalThis !== "undefined" && globalThis) ||
|
|
(typeof self !== "undefined" && self) ||
|
|
// eslint-disable-next-line no-undef
|
|
(typeof global !== "undefined" && global) ||
|
|
{};
|
|
globalObj.Proxy = typeof Proxy === "undefined" ? Es6ProxyPolyfill : Proxy;
|