From 4b43cd89d209cdb9b86696879b402d7bea6d9405 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Tue, 14 Jun 2016 17:31:33 +0200 Subject: [PATCH] Fix javaScript error screen.orientation.lock is not available --- api/js/login.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/js/login.js b/api/js/login.js index b2af0133b9..32d1069fea 100644 --- a/api/js/login.js +++ b/api/js/login.js @@ -16,7 +16,7 @@ egw_LAB.wait(function() jQuery(document).ready(function() { // lock the device orientation in portrait view - if (screen.orientation) screen.orientation.lock('portrait'); + if (screen.orientation && typeof screen.orientation.lock == 'function') screen.orientation.lock('portrait'); function do_social(_data) {