mirror of
https://github.com/tuna/mirror-web.git
synced 2025-12-26 05:02:48 +00:00
15 lines
506 B
JavaScript
15 lines
506 B
JavaScript
import Es6ProxyPolyfill from "./es6-proxy-polyfill.js";
|
|
import "promise-polyfill/src/polyfill";
|
|
import "whatwg-fetch";
|
|
import "events-polyfill";
|
|
import "element-polyfill";
|
|
import "@webcomponents/template/template.min.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;
|