3
0
mirror of https://github.com/danielsogl/awesome-cordova-plugins.git synced 2025-04-15 20:57:07 +08:00

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

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

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