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
a46e308ea8
commit
199380c0c3
@ -82,7 +82,8 @@ export class ScreenOrientation extends IonicNativePlugin {
|
|||||||
*/
|
*/
|
||||||
@Cordova({
|
@Cordova({
|
||||||
eventObservable: true,
|
eventObservable: true,
|
||||||
event: 'orientationchange'
|
event: 'orientationchange',
|
||||||
|
element: 'window'
|
||||||
})
|
})
|
||||||
onChange(): Observable<void> {
|
onChange(): Observable<void> {
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user