Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix installWorker() annoying error message #643

Closed

Conversation

voidpart
Copy link

@voidpart voidpart commented May 18, 2020

we have a lot of "installWorker - SW's 'controllerchange' fired but no state change!" errors in our error tracking system. i discovered that this happened during worker update. it updates successfully, but prints error. this happens due event listener doesn't removed and this.installAlternatingWorker() below will trigger this listener again, but we don't need it because promise has already been resolved

This change is Reviewable

@jkasten2
Copy link
Member

jkasten2 commented Feb 20, 2021

@h3xby Thanks for the PR!
We made some big changes in #745 where the controllerchange is no longer used in the first place by this SDK now.
This was released in version 151300 and is now live:
https://github.com/OneSignal/OneSignal-Website-SDK/releases/tag/151300

@jkasten2 jkasten2 closed this Feb 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants