diff options
Diffstat (limited to 'www/js/DataModel.js')
| -rwxr-xr-x | www/js/DataModel.js | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/www/js/DataModel.js b/www/js/DataModel.js index efdd5d28..3af2762b 100755 --- a/www/js/DataModel.js +++ b/www/js/DataModel.js @@ -162,6 +162,7 @@ angular.module('zmApp.controllers') 'videoPlaybackSpeed': 2, 'enableGIFMP4': false, 'enableStrictSSL': false, + 'enableSlowLoading': false, }; @@ -593,7 +594,8 @@ angular.module('zmApp.controllers') { //console.log ("************* AUGH"); - return $http({method:'GET', timeout:15000, url:urls[0].url}).then(function() + var hDelay = loginData.enableSlowLoading? zm.largeHttpTimeout:zm.httpTimeout; + return $http({method:'GET', timeout:hDelay, url:urls[0].url}).then(function() { log("Success: reachability on " + urls[0].url); $ionicLoading.hide(); @@ -1026,6 +1028,14 @@ angular.module('zmApp.controllers') } + if (typeof loginData.enableSlowLoading == 'undefined') + { + + loginData.enableSlowLoading = false; + + } + log ("SlowDelay is: "+loginData.enableSlowLoading); + if (typeof loginData.enableStrictSSL == 'undefined') { |
