Skip to content

fix(angular): Fix cordova browser error when resumed - #16810

Merged
manucorporat merged 4 commits into
ionic-team:masterfrom
MarkChrisLevy:fix-cordova-resume
Dec 19, 2018
Merged

manucorporat merged 4 commits into
ionic-team:masterfrom
MarkChrisLevy:fix-cordova-resume

Conversation

@MarkChrisLevy

Copy link
Copy Markdown
Contributor

Short description of what this resolves:

In cordova browser error is thrown everytime tab/window is reactivated:
Uncaught TypeError: Cannot read property 'detail' of undefined
at Channel. (util.js:10)
at Channel.fire (cordova.js:798)
at HTMLDocument. (cordova.js:1511)

That was fixed some time ago, by it was reintroduced again in latest commits.

Changes proposed in this pull request:

Check, whether event object is not null.

Ionic Version:
4.0.0-beta.19
Fixes:
#15944

In cordova browser error is thrown everytime tab/window is reactivated:
Uncaught TypeError: Cannot read property 'detail' of undefined
    at Channel.<anonymous> (util.js:10)
    at Channel.fire (cordova.js:798)
    at HTMLDocument.<anonymous> (cordova.js:1511)

That was fixed in previous commits, by in latest was reintroduced again.
@ionitron-bot ionitron-bot Bot added the package: angular @ionic/angular package label Dec 19, 2018
@manucorporat
manucorporat merged commit e735d2c into ionic-team:master Dec 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: angular @ionic/angular package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants