qipp-config-environment
Advanced tools
Comparing version 2.0.1 to 2.0.2
{ | ||
"name": "qipp-config-environment", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"title": "Environment configuration", | ||
@@ -5,0 +5,0 @@ "description": "Environment configuration file for the ATH clients.", |
@@ -13,10 +13,8 @@ ;(function () { | ||
) { | ||
// Get an instance of the $windowProvider. | ||
var match = $windowProvider.$get().location.hostname | ||
.match(/^[\w-]+\.(\w+)\.qipp\.com$/) | ||
if (match) { | ||
config.api.host = 'https://home.' + match[1] + '.qipp.com' | ||
} | ||
.match(/^[\w-]+\.(\w+\.)qipp\.com$/) | ||
var subdomainPart = match ? match[1] : '' | ||
config.api.host = 'https://home.' + subdomainPart + 'qipp.com' | ||
} | ||
]) | ||
}()) |
;(function () { | ||
'use strict' | ||
angular.module('flatapp.config', []).constant('config', { | ||
api: { | ||
host: 'https://home.qipp.com' | ||
} | ||
}) | ||
angular.module('flatapp.config', []).constant('config', {api: {host: ''}}) | ||
}()) |
@@ -10,3 +10,3 @@ ;(function () { | ||
function (config) { | ||
config.api.host = 'https://home.qipp.com' | ||
config.api.host = '' | ||
} | ||
@@ -13,0 +13,0 @@ ) |
7185
131