From 104532e1d7b18650ac125595402fd3019c0f616f Mon Sep 17 00:00:00 2001 From: JiaLiPassion Date: Thu, 2 Mar 2017 10:10:05 +0900 Subject: [PATCH] fix(plugin): revert changes to support stable version (#1116) fix #1001 --- src/plugins/screen-orientation.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/plugins/screen-orientation.ts b/src/plugins/screen-orientation.ts index 8476b68b6..28e27888f 100644 --- a/src/plugins/screen-orientation.ts +++ b/src/plugins/screen-orientation.ts @@ -48,11 +48,10 @@ export class ScreenOrientation { /** * Lock the orientation to the passed value. * See below for accepted values - * @param orientation {string} The orientation which should be locked. Accepted values see table below. - * @returns {Promise} returns a promise that resolves when the screen orientation is locked, and rejects when an error occurs. + * @param orientation {string} The orientation which should be locked. Accepted values see table above. */ - @Cordova({ otherPromise: true }) - static lockOrientation(orientation: string): Promise { return; } + @Cordova({ sync: true }) + static lockOrientation(orientation: string): void { } /** * Unlock and allow all orientations.