blurymind / YarnClassic

A tool for writing interactive dialogue in games!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pwa offline worker no longer working - only on chrome?

blurymind opened this issue · comments

Possibly a recent regression. Might be due to chrome update too. Not sure

Tried with brave web browser. This is definitely caused by a chrome update :(

On Chrome we get this now

sw.js:3 Uncaught (in promise) Error: Wrong response status
    at https://yarnspinnertool.github.io/YarnEditor/sw.js:3:8788
    at async Promise.all (index 0)

@JamesAndrewJackson13 you implemented the offline worker.
https://github.com/YarnSpinnerTool/YarnEditor/pull/107

Any idea why Chrome's recent update is failing it now? Lighthouse is no longer letting Yarn be installable app
Screenshot_2020-06-14_15-06-05

It gives
Does not register a service worker that controls page and start_url

I fixed this by switching yarn to workbox