Repository navigation
Expand file tree
/
Copy pathbuild.js
More file actions
1 lines (1 loc) · 2.01 KB
/
Copy pathbuild.js
File metadata and controls
1 lines (1 loc) · 2.01 KB
1
globalThis.process={env:{NODE_ENV:"production"}};var cdn="./";globalThis.WCGlobalCDNPath&&(cdn=globalThis.WCGlobalCDNPath),globalThis.__appCDN&&(cdn=globalThis.__appCDN);var fname="wc-registry.json";globalThis.WCGlobalRegistryFileName&&(fname=globalThis.WCGlobalRegistryFileName),globalThis.WCAutoloadRegistryFile=cdn+fname;var autoloaderScriptLocation="build/es6/node_modules/@haxtheweb/wc-autoload/wc-autoload.js",anchor=globalThis.document.currentScript||globalThis.document.getElementsByTagName("script")[0];if("noModule"in HTMLScriptElement.prototype){var build=globalThis.document.createElement("script");build.src=cdn+autoloaderScriptLocation,build.type="module",build.onerror=e=>{!function fallbackChecks(e){var cdn=globalThis.__appCDN;if(!globalThis.__appCDNBlockFallback){var build=globalThis.document.createElement("script");build.type="module",build.onerror=e=>{fallbackChecks(e)},"./"===cdn?(globalThis.__appCDN="https://cdn.hax.cloud/cdn/",globalThis.WCAutoloadRegistryFile=globalThis.WCAutoloadRegistryFile.replace(cdn,globalThis.__appCDN),build.src=globalThis.__appCDN+autoloaderScriptLocation,anchor.parentNode.insertBefore(build,anchor),console.warn(cdn+" failed to respond, falling back to alternative: "+globalThis.__appCDN)):"https://cdn.hax.cloud/cdn/"===cdn?(globalThis.__appCDN="https://cdn.webcomponents.psu.edu/cdn/",globalThis.WCAutoloadRegistryFile=globalThis.WCAutoloadRegistryFile.replace(cdn,globalThis.__appCDN),build.src=globalThis.__appCDN+autoloaderScriptLocation,anchor.parentNode.insertBefore(build,anchor),console.warn(cdn+" failed to respond, falling back to alternative: "+globalThis.__appCDN)):(globalThis.__appCDN="./",globalThis.WCAutoloadRegistryFile=globalThis.WCAutoloadRegistryFile.replace(cdn,globalThis.__appCDN),console.error("Local delivery failed and all alternative CDNs failed to load. You might be offline, in a secure environment or doing testing intentionally to generate this *shrug*"))}}()},anchor.parentNode.insertBefore(build,anchor)}else console.error("ES modules not supported by this browser.");