Browse Source
The previous configuration attempted to redefine the read-only navigator.serviceWorker property, which caused runtime errors. Instead, we now handle service worker availability through the transform plugin, which safely removes service worker code in Electron and PyWebView builds. This fixes the error: "Cannot set property serviceWorker of #<Navigator> which has only a getter" Technical changes: - Removed navigator.serviceWorker from define section - Rely on existing transform plugin to handle service worker code removal - Maintains existing PWA functionality for web builds while properly disabling it for desktop buildspull/126/head
1 changed files with 1 additions and 2 deletions
Loading…
Reference in new issue