Zyncco / Chrome-Extension

11 stars 2 forks source link

Cannot Create Service Worker under Windows 10 #14

Closed sickpuppysoftware closed 7 years ago

sickpuppysoftware commented 7 years ago

When trying to log in under Windows 10 the following error occurs

login.html:1 Uncaught (in promise) DOMException: Failed to register a ServiceWorker: The script has an unsupported MIME type ('text/plain'). Promise rejected (async) (anonymous) @ login.js:16

Registering the service worker works fine under OSX and Chrome OS.

sickpuppysoftware commented 7 years ago

Issue was due to app installation changing mime type in registry

GuBeomJeong commented 7 years ago

Have you solved this problem? If you solved it, can you tell me how you solved it? Thank you very much.

sickpuppysoftware commented 7 years ago

I searched the registry for text/plain until I spotted one that matched a .js extension. I changed it to application/javascript.

Unfortunately the editor that changed this setting broke it again when it updated. It's a known issue that I don't think Google are going to fix anytime soon.

I raised a bug with them.

GuBeomJeong commented 7 years ago

Thank you for your answer. Well, I guess there's only a way to change the registry locally now in Windows 10.