From e0a1f3948cbc05bd6895e66b46d735ab45bd8b70 Mon Sep 17 00:00:00 2001 From: iktumi <46563781+iktumi@users.noreply.github.com> Date: Fri, 22 Jan 2021 17:06:37 +0000 Subject: [PATCH] fix: resolveOrientation function not working correctly (#77) Fixing a problem that was making the screen not to be locked as described on https://www.outsystems.com/forums/discussion/67761/resolveorientation-bug/ --- www/screenorientation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/screenorientation.js b/www/screenorientation.js index d8fe529..4e98e9a 100644 --- a/www/screenorientation.js +++ b/www/screenorientation.js @@ -84,7 +84,7 @@ function addScreenOrientationApi (screenObject) { } function resolveOrientation (orientation, resolve, reject) { - if (!Object.prototype.hasOwnProperty.call(OrientationLockType, 'orientation')) { + if (!Object.prototype.hasOwnProperty.call(OrientationLockType, orientation)) { var err = new Error(); err.name = 'NotSupportedError'; reject(err); // "cannot change orientation");