Skip to content

fix: reject init() when push is unsupported or script fails to load#207

Merged
sherwinski merged 1 commit into
mainfrom
cd_update
Jun 1, 2026
Merged

fix: reject init() when push is unsupported or script fails to load#207
sherwinski merged 1 commit into
mainfrom
cd_update

Conversation

@onesignal-deploy
Copy link
Copy Markdown
Collaborator

@onesignal-deploy onesignal-deploy commented May 29, 2026

Syncs the generated wrapper with web-shim-codegen v3.0.8.

This release fixes a bug where init() would never settle: it now rejects instead of hanging when the browser does not support Web Push or the OneSignal SDK script fails to load. Previously the promise hung forever, which could freeze app startup. Also adds regression tests for both cases.

Upstream change: OneSignal/web-shim-codegen#138
Related: OneSignal/onesignal-vue3#83

@sherwinski sherwinski changed the title build: sync with web-shim-codegen v3.0.8 fix: reject init() when push is unsupported or script fails to load Jun 1, 2026
@sherwinski sherwinski merged commit 8dfe096 into main Jun 1, 2026
4 checks passed
@onesignal-deploy
Copy link
Copy Markdown
Collaborator Author

🎉 This PR is included in version 3.5.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants