Title: Javascript Error Thrown &#8211; OneSignal Issues
Last modified: March 7, 2020

---

# Javascript Error Thrown – OneSignal Issues

 *  [ouija](https://wordpress.org/support/users/ouija/)
 * (@ouija)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/javascript-error-thrown-onesignal-issues/)
 * **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](https://github.com/SuperPWA/Super-Progressive-Web-Apps/releases/tag/2.0.2.1))
    -  This topic was modified 6 years, 3 months ago by [ouija](https://wordpress.org/support/users/ouija/).

Viewing 1 replies (of 1 total)

 *  Thread Starter [ouija](https://wordpress.org/support/users/ouija/)
 * (@ouija)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/javascript-error-thrown-onesignal-issues/#post-12519755)
 * 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.

 * ![](https://ps.w.org/super-progressive-web-apps/assets/icon-128x128.png?rev=1842063)
 * [Super Progressive Web Apps](https://wordpress.org/plugins/super-progressive-web-apps/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/super-progressive-web-apps/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/super-progressive-web-apps/)
 * [Active Topics](https://wordpress.org/support/plugin/super-progressive-web-apps/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/super-progressive-web-apps/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/super-progressive-web-apps/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [ouija](https://wordpress.org/support/users/ouija/)
 * Last activity: [6 years, 3 months ago](https://wordpress.org/support/topic/javascript-error-thrown-onesignal-issues/#post-12519755)
 * Status: not resolved