From d38b5719bad24d1039feb8d0e2b5f29c17158486 Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Fri, 3 Mar 2017 05:55:53 -0500 Subject: #487 - devoption added to increase HTTP timeouts --- www/js/DataModel.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'www/js/DataModel.js') 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') { -- cgit v1.2.3