mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-19 08:32:52 +08:00
fix(screen-orientation): add window element to eventObservable (#3166)
This commit is contained in:
parent
650615e883
commit
6bc1b932c8
@ -82,7 +82,8 @@ export class ScreenOrientation extends IonicNativePlugin {
|
||||
*/
|
||||
@Cordova({
|
||||
eventObservable: true,
|
||||
event: 'orientationchange'
|
||||
event: 'orientationchange',
|
||||
element: 'window'
|
||||
})
|
||||
onChange(): Observable<void> {
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user