From 2f79491e1cfb9973eff9b4720eb79d36751d4752 Mon Sep 17 00:00:00 2001 From: blavenie <benoit.lavenier@e-is.pro> Date: Mon, 13 Mar 2017 17:44:58 +0100 Subject: [PATCH] JS Hint --- www/js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/js/app.js b/www/js/app.js index eaf82f55c..1bbfe6941 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -328,7 +328,7 @@ angular.module('cesium', ['ionic', 'ionic-material', 'ngMessages', 'pascalprecht }); // Automatic redirection to HTTPS - if ((csConfig.httpsMode == true || csConfig.httpsMode === 'force') && + if ((csConfig.httpsMode === true || csConfig.httpsMode == 'true' ||csConfig.httpsMode === 'force') && $window.location.protocol != 'https:') { $rootScope.$on('$stateChangeStart', function (event, next, nextParams, fromState) { var path = 'https' + $rootScope.rootPath.substr(4) + $state.href(next, nextParams); -- GitLab