Skip to content
Snippets Groups Projects
Commit 2f79491e authored by Benoit Lavenier's avatar Benoit Lavenier
Browse files

JS Hint

parent 435de899
No related branches found
No related tags found
No related merge requests found
...@@ -328,7 +328,7 @@ angular.module('cesium', ['ionic', 'ionic-material', 'ngMessages', 'pascalprecht ...@@ -328,7 +328,7 @@ angular.module('cesium', ['ionic', 'ionic-material', 'ngMessages', 'pascalprecht
}); });
// Automatic redirection to HTTPS // 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:') { $window.location.protocol != 'https:') {
$rootScope.$on('$stateChangeStart', function (event, next, nextParams, fromState) { $rootScope.$on('$stateChangeStart', function (event, next, nextParams, fromState) {
var path = 'https' + $rootScope.rootPath.substr(4) + $state.href(next, nextParams); var path = 'https' + $rootScope.rootPath.substr(4) + $state.href(next, nextParams);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment