mirror of
https://github.com/github/awesome-copilot.git
synced 2026-07-14 18:11:01 +00:00
18 lines
596 B
JavaScript
18 lines
596 B
JavaScript
(() => {
|
|
window.__agentArcadePhaserReady = (async () => {
|
|
if (!("DecompressionStream" in window)) {
|
|
throw new Error("This browser cannot load the compressed Phaser bundle.");
|
|
}
|
|
|
|
const response = await fetch("./phaser.min.js.gz");
|
|
if (!response.ok || !response.body) {
|
|
throw new Error("Failed to load the Phaser bundle.");
|
|
}
|
|
|
|
const stream = response.body.pipeThrough(new DecompressionStream("gzip"));
|
|
const source = await new Response(stream).text();
|
|
(0, eval)(`${source}\n//# sourceURL=phaser.min.bundle.js`);
|
|
return window.Phaser;
|
|
})();
|
|
})();
|