• Description:
    Latest release of Chrome/Brave Browser [80.0.3987.132 (Official Build) (64-bit)] is getting the following error in the console and failing to load OneSignal:

    ERROR: Uncaught (in promise) DOMException: Failed to update a ServiceWorker for scope with script ('OneSignalSDKWorker.js.php'): The script has an unsupported MIME type ('text/html')

    Other browsers appear to be unaffected (tested with Firefox/Edge/Opera)

    Steps to Reproduce Issue:
    View any page under latest Chrome/Brave browser and error is thrown.

    Anything else:
    Noticed this issue after updating server from PHP 7.2 -> PHP 7.4 but not certain if that has anything to do with this. Also updated the plugin to 2.0.2.1 after re-activating OneSignal during debugging and admin panel was constantly displaying the custom manifest error (https://github.com/SuperPWA/Super-Progressive-Web-Apps/releases/tag/2.0.2.1)

    • This topic was modified 4 years, 12 months ago by ouija.
Viewing 1 replies (of 1 total)
  • Thread Starter ouija

    (@ouija)

    This is an odd error. I noticed that if I clear cache in Chrome, close the browser and revisit the site, then things seem to work and I am prompted to enable notifications. If I don’t allow, open the console and reload the site, then the error is thrown.

    With Brave, I do the same but also have to disable webshields and reload and then I’m prompted to enable notifications.

    Maybe it’s a false issue due to not allowing notifications but I’ve never seen this error until recently and figured it worth reporting.

Viewing 1 replies (of 1 total)
  • The topic ‘Javascript Error Thrown – OneSignal Issues’ is closed to new replies.