From 00952a67fb081e0a665d8987871dc264ac2239c1 Mon Sep 17 00:00:00 2001 From: WebAssembly Deployer <> Date: Fri, 28 Jun 2024 11:15:06 +0000 Subject: [PATCH] Graphia-dev-3500-ge7b9c93bc-wasm-deploy --- Graphia.wasm | Bin 38794409 -> 38794409 bytes coi-serviceworker.js | 74 ++++++++++++++----------------------------- index.html | 1 + 3 files changed, 24 insertions(+), 51 deletions(-) diff --git a/Graphia.wasm b/Graphia.wasm index 1313616b2f3677149c0812dca2f00d5bf6a30ad5..56153f5493b187abff08d8906f014c727fe53d9a 100755 GIT binary patch delta 9408 zcmaKxdz?+>8pq#ft-a^gG#KMfM(&f#$YtC@QZ6Zqt}ac(pc_#XsXcfoJe@5Sampr_ zC=wz%w1&-}n0%TC0zm+@B# z0y^ko2*a3yshEc8n1PpJCSHzNSO&{tIn2iLn1dCtB38o6SOu$MHLQ*`@CvMnxmXLY z#M)Q~>ta2uj}5RP=HXS?2peM)Y>N5V46nxK*aBN(D=fg)*aq8TJ8X~FU7j{|TZ-h+jB zFBah-9E`;{1c%}BXKD0~DT#nCthAH&CSERMq`a6CSVPhkX0 zZ~{)mNr*TZr{L503{J&qI2{R}#eZNFXW(-<6Q9Qy@I{=3v+*UIgLCnp_%gnN^Du_< zaRI)H3vm%H#wGX~F2!Z|I=+F+aRt7KEAcH{g{yH5zKv^f9lnF>aRa`K|H6&93E#sw zmf~jIg74#2`~bJ%cHDs<;zzg>cj3qQ34V&Z@iY7!zra1X7r(@>a3Ai+ukjl^fCupq z9>ybh6p!J*@i=~q-{JT81D?Pi@g$zY)A$pf!LxV{f5u<%JpKoN#S8cw{*Hg(Mf?;0 z!b|w~Ge7|30J%URpfFGhP%2OwP&!Zs&}BfGK$in$0hIwN3sep$8>l=`4p0T4ia?cs zDg#vkstQyMs5(#$peulC0_6hL0=g2YHc%a)xH{?ZY6z4EbQMq|pvFK=fSLm3 z12qG>8mKu?3!s)jt$+%ES_8EKY75j3s6Eg%KplWO0(Anq7N|4ObwF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_|d$?&nWPpy;(C}o6}c507J5mD209^oQ`k!Y$J>iCJp`%<o;q1c@A41AK2rq>ai!{B70Pr0 zI$wsT&N1CCE5_BnC&VxAG*3UKvVtuEfILZ;Kyzg>BrU#QvJ)eqpe@uAFL zd8_&Il7qz*Uf0;}t1Wdi{8%%~2~iyYgL(?!43QO@w{v=m2FDMD>Tx-W8~46akHA9o z=4VpWu9)&ikMb(*cSB4ge0$_3yGC!6Ox+1SHFTqP%+FjgH_lQu%J;wIh4TD+eHDLO z(*{Rs_}xLq0!zK`{a8r(&eDk9O`&aDOF`F_X@1C3H#w|gOy-$Tu=A)EQOJu{=fErS zi!i6|w-lBu&1-C_vs>xiPg&}It8{CKrbdtIb?lyFgPj>#L_uhOq`aW9vj*GPNQu%O z4_OM|Yj;<+vNZT+83y+*r%_q1&T;K-IuEN}GX!U`26>jIKI$ii^&NdGQ@2XH`>jbR zR_B@juxMkUq4rj9lNu8jky@gOUn#IDQusc=jh9u?tPmxo6V_SkRPm`9@PkjeG?TAX zp7rANY|V4*&bQbLYWwIxOU+?TQBgm=6o*C)&ht{zMeOPhgo76>wY%eMUgR3f3!aaf z{JVi8y0&F7gSCD97aJT58~i-eQoRlXKlD=?7tb0Pt63$}VX5XMYF5c|iY{e8o4Yaj zT8G5P&9a=rs!WQil#}>KHpr~Rk}g?J)yBEyrxm{Cl~-q~vRx&MUdy1n(&USBrd=DK zw=v7P+|Q9dD$5z)pL5SczqgJ2>X5<_epb}?H=7p9$}5^1Z^njAL$p+BeoBaTRw~cs zb;Vn9{jK8CQQr~86)>4u6u*ssZe3n=Y|z~5 z4oeM@OGRori9vH~IZaA#;kq|+N6CYXRMzRA%|%*>v=nJ2k}J|$q>V^hkvx%hBJD*wh;$U`B+^-=i%3_IZX(@9 udWhtU^c3kOa)n55kt;>666qt-SEQdvf03(228aw4xrS%po { - const reloadedBySelf = window.sessionStorage.getItem("coiReloadedBySelf"); - window.sessionStorage.removeItem("coiReloadedBySelf"); - const coepDegrading = (reloadedBySelf == "coepdegrade"); - // You can customize the behavior of this script through a global `coi` variable. const coi = { - shouldRegister: () => !reloadedBySelf, + shouldRegister: () => true, shouldDeregister: () => false, - coepCredentialless: () => true, - coepDegrade: () => true, + coepCredentialless: () => !(window.chrome || window.netscape), doReload: () => window.location.reload(), quiet: false, ...window.coi }; const n = navigator; - const controlling = n.serviceWorker && n.serviceWorker.controller; - - // Record the failure if the page is served by serviceWorker. - if (controlling && !window.crossOriginIsolated) { - window.sessionStorage.setItem("coiCoepHasFailed", "true"); - } - const coepHasFailed = window.sessionStorage.getItem("coiCoepHasFailed"); - if (controlling) { - // Reload only on the first failure. - const reloadToDegrade = coi.coepDegrade() && !( - coepDegrading || window.crossOriginIsolated - ); + if (n.serviceWorker && n.serviceWorker.controller) { n.serviceWorker.controller.postMessage({ type: "coepCredentialless", - value: (reloadToDegrade || coepHasFailed && coi.coepDegrade()) - ? false - : coi.coepCredentialless(), + value: coi.coepCredentialless(), }); - if (reloadToDegrade) { - !coi.quiet && console.log("Reloading page to degrade COEP."); - window.sessionStorage.setItem("coiReloadedBySelf", "coepdegrade"); - coi.doReload("coepdegrade"); - } if (coi.shouldDeregister()) { n.serviceWorker.controller.postMessage({ type: "deregister" }); @@ -115,32 +92,27 @@ if (typeof window === 'undefined') { return; } - // In some environments (e.g. Firefox private mode) this won't be available - if (!n.serviceWorker) { - !coi.quiet && console.error("COOP/COEP Service Worker not registered, perhaps due to private mode."); - return; - } - - n.serviceWorker.register(window.document.currentScript.src).then( - (registration) => { - !coi.quiet && console.log("COOP/COEP Service Worker registered", registration.scope); + // In some environments (e.g. Chrome incognito mode) this won't be available + if (n.serviceWorker) { + n.serviceWorker.register(window.document.currentScript.src).then( + (registration) => { + !coi.quiet && console.log("COOP/COEP Service Worker registered", registration.scope); - registration.addEventListener("updatefound", () => { - !coi.quiet && console.log("Reloading page to make use of updated COOP/COEP Service Worker."); - window.sessionStorage.setItem("coiReloadedBySelf", "updatefound"); - coi.doReload(); - }); + registration.addEventListener("updatefound", () => { + !coi.quiet && console.log("Reloading page to make use of updated COOP/COEP Service Worker."); + coi.doReload(); + }); - // If the registration is active, but it's not controlling the page - if (registration.active && !n.serviceWorker.controller) { - !coi.quiet && console.log("Reloading page to make use of COOP/COEP Service Worker."); - window.sessionStorage.setItem("coiReloadedBySelf", "notcontrolling"); - coi.doReload(); + // If the registration is active, but it's not controlling the page + if (registration.active && !n.serviceWorker.controller) { + !coi.quiet && console.log("Reloading page to make use of COOP/COEP Service Worker."); + coi.doReload(); + } + }, + (err) => { + !coi.quiet && console.error("COOP/COEP Service Worker failed to register:", err); } - }, - (err) => { - !coi.quiet && console.error("COOP/COEP Service Worker failed to register:", err); - } - ); + ); + } })(); } diff --git a/index.html b/index.html index 741790e..3e1c3ef 100644 --- a/index.html +++ b/index.html @@ -1,6 +1,7 @@ +