Spaces:
Running
Running
feat: test without COI
Browse files- static/smg/coi-serviceworker.min.js +0 -2
- static/smg/index.html +2 -9
- static/smg/index.pck +2 -2
static/smg/coi-serviceworker.min.js
DELETED
@@ -1,2 +0,0 @@
|
|
1 |
-
/*! coi-serviceworker v0.1.7 - Guido Zuidhof and contributors, licensed under MIT */
|
2 |
-
let coepCredentialless=!1;"undefined"==typeof window?(self.addEventListener("install",(()=>self.skipWaiting())),self.addEventListener("activate",(e=>e.waitUntil(self.clients.claim()))),self.addEventListener("message",(e=>{e.data&&("deregister"===e.data.type?self.registration.unregister().then((()=>self.clients.matchAll())).then((e=>{e.forEach((e=>e.navigate(e.url)))})):"coepCredentialless"===e.data.type&&(coepCredentialless=e.data.value))})),self.addEventListener("fetch",(function(e){const r=e.request;if("only-if-cached"===r.cache&&"same-origin"!==r.mode)return;const s=coepCredentialless&&"no-cors"===r.mode?new Request(r,{credentials:"omit"}):r;e.respondWith(fetch(s).then((e=>{if(0===e.status)return e;const r=new Headers(e.headers);return r.set("Cross-Origin-Embedder-Policy",coepCredentialless?"credentialless":"require-corp"),coepCredentialless||r.set("Cross-Origin-Resource-Policy","cross-origin"),r.set("Cross-Origin-Opener-Policy","same-origin"),new Response(e.body,{status:e.status,statusText:e.statusText,headers:r})})).catch((e=>console.error(e))))}))):(()=>{const e={shouldRegister:()=>!0,shouldDeregister:()=>!1,coepCredentialless:()=>(window.chrome!==undefined||window.netscape!==undefined),doReload:()=>window.location.reload(),quiet:!1,...window.coi},r=navigator;r.serviceWorker&&r.serviceWorker.controller&&(r.serviceWorker.controller.postMessage({type:"coepCredentialless",value:e.coepCredentialless()}),e.shouldDeregister()&&r.serviceWorker.controller.postMessage({type:"deregister"})),!1===window.crossOriginIsolated&&e.shouldRegister()&&(window.isSecureContext?r.serviceWorker&&r.serviceWorker.register(window.document.currentScript.src).then((s=>{!e.quiet&&console.log("COOP/COEP Service Worker registered",s.scope),s.addEventListener("updatefound",(()=>{!e.quiet&&console.log("Reloading page to make use of updated COOP/COEP Service Worker."),e.doReload()})),s.active&&!r.serviceWorker.controller&&(!e.quiet&&console.log("Reloading page to make use of COOP/COEP Service Worker."),e.doReload())}),(r=>{!e.quiet&&console.error("COOP/COEP Service Worker failed to register:",r)})):!e.quiet&&console.log("COOP/COEP Service Worker not registered, a secure context is required."))})();
|
|
|
|
|
|
static/smg/index.html
CHANGED
@@ -135,16 +135,9 @@ body {
|
|
135 |
<div id="status-notice" class="godot" style="display: none;"></div>
|
136 |
</div>
|
137 |
|
|
|
138 |
<script>
|
139 |
-
|
140 |
-
document.getElementById('status').style.display = 'none';
|
141 |
-
setTimeout(() => document.getElementById('status').style.display = '', 1500);
|
142 |
-
}
|
143 |
-
</script>
|
144 |
-
<script src="coi-serviceworker.min.js"></script>
|
145 |
-
<script src="index.js"></script>
|
146 |
-
<script>
|
147 |
-
const GODOT_CONFIG = {"args":[],"canvasResizePolicy":2,"executable":"index","experimentalVK":false,"fileSizes":{"index.pck":52711824,"index.wasm":52315256},"focusCanvas":true,"gdextensionLibs":[]};
|
148 |
const engine = new Engine(GODOT_CONFIG);
|
149 |
|
150 |
(function () {
|
|
|
135 |
<div id="status-notice" class="godot" style="display: none;"></div>
|
136 |
</div>
|
137 |
|
138 |
+
<script src="index.js"></script>
|
139 |
<script>
|
140 |
+
const GODOT_CONFIG = {"args":[],"canvasResizePolicy":2,"executable":"index","experimentalVK":false,"fileSizes":{"index.pck":52716256,"index.wasm":52315256},"focusCanvas":true,"gdextensionLibs":[]};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
141 |
const engine = new Engine(GODOT_CONFIG);
|
142 |
|
143 |
(function () {
|
static/smg/index.pck
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:27cedfec96d11581c8276976b5bb9cae67e0f78a3b0102333481da4c63a7482e
|
3 |
+
size 52716256
|