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(core): cordova events not firing #4712

Merged
merged 1 commit into from
Jun 10, 2021
Merged

fix(core): cordova events not firing #4712

merged 1 commit into from
Jun 10, 2021

Conversation

jcesarmobile
Copy link
Member

@jcesarmobile jcesarmobile commented Jun 10, 2021

When the events are initialized cordova is still undefined as it gets injected later, so we are setting the undefined to a const, then, when you try to fire a cordova event, the cordova const is undefined and will fail to fire.

By moving the cordova const initialization to when it's going to be used it will contain the real window.cordova and won't be undefined.

Also moved the window.document just in case.

closes #4713

@jcesarmobile jcesarmobile merged commit ca4e3b6 into main Jun 10, 2021
@jcesarmobile jcesarmobile deleted the fix-cordova-events branch June 10, 2021 16:55
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.

resume event not firing since final v3.0.0 release - was working in the release candidates
2 participants