diff --git a/www/screenorientation.js b/www/screenorientation.js index 891c3bc..0711387 100644 --- a/www/screenorientation.js +++ b/www/screenorientation.js @@ -56,7 +56,6 @@ var p = new Promise(function(resolve, reject) { if (screenObject.nativeLock != null) { promiseLock = screenObject.nativeLock(orientation); - flag = true; } else { resolveOrientation(orientation, resolve, reject); } @@ -98,4 +97,4 @@ } window.addEventListener("orientationchange", orientationChange, true); - module.exports = screenOrientation; \ No newline at end of file + module.exports = screenOrientation;