From c6abca6f08c74eb58c828440ddd43373ad7fe13f Mon Sep 17 00:00:00 2001 From: Gustavo Maximiliano Cortez Date: Mon, 20 Feb 2017 13:28:31 -0300 Subject: [PATCH] Fix scren.lockOrientation --- src/js/routes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/routes.js b/src/js/routes.js index 10dc45706..9f54c75c6 100644 --- a/src/js/routes.js +++ b/src/js/routes.js @@ -1096,7 +1096,7 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr uxLanguage.init(); $ionicPlatform.ready(function() { - if (screen.width < 768) + if (screen.width < 768 && platformInfo.isCordova) screen.lockOrientation('portrait'); if (window.cordova && window.cordova.plugins && window.cordova.plugins.Keyboard) {