Skip to content

Commit

Permalink
fix(screen-orientation): add window element to eventObservable (#3166)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile authored and danielsogl committed Sep 13, 2019
1 parent 650615e commit 6bc1b93
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/@ionic-native/plugins/screen-orientation/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ export class ScreenOrientation extends IonicNativePlugin {
*/
@Cordova({
eventObservable: true,
event: 'orientationchange'
event: 'orientationchange',
element: 'window'
})
onChange(): Observable<void> {
return;
Expand Down

0 comments on commit 6bc1b93

Please sign in to comment.