Electron client: Offline broken
Offline is currently broken as a result of intentionally blocking the service worker. This is messy, breaks things on first load, and of course breaks offline functionality. The server worker fails to load content from the tetrio-plus://
internal URI scheme with a generic ERR_FAILED, so any rewrites break with it active.
Attempted solutions:
- Registering service worker with scope for
tetrio-plus://
: Doesn't work, even with allowServiceWorkers: true - Custom service worker: Doesn't appear to be a issue with tetrio's SW
- Service worker served from
tetrio-plus://
: Won't register on page because of a different origin - Loading the entire page from
tetrio-plus://tetrio-plus/index.html
: Breaks on various types of requests, mostly POST - interceptHttpProtocol: Is a massive pain to re-implement all types of requests since you can't pass a request through unmodified
Unattempted solutions:
- Local proxy: Overcomplicated and hopefully unnecessary