nisovin / godot-coi-serviceworker

A Godot plugin that enables cross-origin isolation for web exports
https://godotengine.org/asset-library/asset/1818
MIT License
41 stars 3 forks source link

coi-serviceworker.js conflicts with index.service.worker.js when building as a PWA #3

Open doctor-g opened 4 months ago

doctor-g commented 4 months ago

Exporting the project as a PWA generates a separate service worker script as index.service.worker.js. This results in two separate service worker scripts. My understanding is that a given page ought to only have one.

Is it possible to integrate the behavior of coi-serviceworker.js with index.service.worker.js in case both are desired?

nisovin commented 3 months ago

Good news on this, it sounds like the functionality of this plugin is effectively going to be built-in to the PWA functionality in Godot 4.3.

https://godotengine.org/article/progress-report-web-export-in-4-3/#easy-coop-coep-pwa-for-threaded-builds