Merge pull request #5632 from cmgustavo/bug/screen-cordova

Fix screen.lockOrientation
This commit is contained in:
Gabriel Edgardo Bazán 2017-02-20 11:29:48 -05:00 committed by GitHub
commit d0055206c2
1 changed files with 1 additions and 1 deletions

View File

@ -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) {