mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-05-20 00:06:24 +08:00
refactor(lib): run prettier
This commit is contained in:
@@ -1,10 +1,5 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import {
|
||||
Cordova,
|
||||
CordovaProperty,
|
||||
IonicNativePlugin,
|
||||
Plugin
|
||||
} from '@ionic-native/core';
|
||||
import { Cordova, CordovaProperty, IonicNativePlugin, Plugin } from '@ionic-native/core';
|
||||
import { Observable } from 'rxjs';
|
||||
|
||||
/**
|
||||
@@ -60,7 +55,7 @@ import { Observable } from 'rxjs';
|
||||
plugin: 'cordova-plugin-screen-orientation',
|
||||
pluginRef: 'screen.orientation',
|
||||
repo: 'https://github.com/apache/cordova-plugin-screen-orientation',
|
||||
platforms: ['Android', 'iOS', 'Windows']
|
||||
platforms: ['Android', 'iOS', 'Windows'],
|
||||
})
|
||||
@Injectable()
|
||||
export class ScreenOrientation extends IonicNativePlugin {
|
||||
@@ -74,7 +69,7 @@ export class ScreenOrientation extends IonicNativePlugin {
|
||||
LANDSCAPE_SECONDARY: 'landscape-secondary',
|
||||
PORTRAIT: 'portrait',
|
||||
LANDSCAPE: 'landscape',
|
||||
ANY: 'any'
|
||||
ANY: 'any',
|
||||
};
|
||||
/**
|
||||
* Listen to orientation change event
|
||||
@@ -83,7 +78,7 @@ export class ScreenOrientation extends IonicNativePlugin {
|
||||
@Cordova({
|
||||
eventObservable: true,
|
||||
event: 'orientationchange',
|
||||
element: 'window'
|
||||
element: 'window',
|
||||
})
|
||||
onChange(): Observable<void> {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user