fix(screen-orientation): add window element to eventObservable (#3166)

This commit is contained in:
jcesarmobile 2019-09-13 14:39:52 +02:00 committed by Daniel Sogl
parent a46e308ea8
commit 199380c0c3

View File

@ -82,7 +82,8 @@ export class ScreenOrientation extends IonicNativePlugin {
*/
@Cordova({
eventObservable: true,
event: 'orientationchange'
event: 'orientationchange',
element: 'window'
})
onChange(): Observable<void> {
return;