mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-05-02 00:07:23 +08:00
chore(): optimize CordovaProperty and InstanceProperty decorators (#635)
* chore(): optimize InstanceProperty wrapper * chore(): optimize CordovaProperty wrapper * tslint' * fix decorators
This commit is contained in:
@@ -59,11 +59,9 @@ export class ScreenOrientation {
|
||||
@Cordova({ sync: true })
|
||||
static unlockOrientation(): void { }
|
||||
|
||||
/*
|
||||
/**
|
||||
* Get the current orientation of the device.
|
||||
*/
|
||||
@CordovaProperty
|
||||
static get orientation() {
|
||||
return window.screen.orientation;
|
||||
}
|
||||
static orientation: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user