Skip to content

Commit

Permalink
fix(plugin): revert changes to support stable version (#1116)
Browse files Browse the repository at this point in the history
 fix #1001
  • Loading branch information
JiaLiPassion authored and ihadeed committed Mar 2, 2017
1 parent 97cf22e commit 104532e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/plugins/screen-orientation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<any>} 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<string> { return; }
@Cordova({ sync: true })
static lockOrientation(orientation: string): void { }

/**
* Unlock and allow all orientations.
Expand Down

0 comments on commit 104532e

Please sign in to comment.