Merge pull request #523 in FS/freeswitch from ~STEFAN_YOHANSSON/freeswitch:bugfix/FS-8257-config-doesn-t-work-with-grunt-serve to master
* commit 'd8d7a9f352a2fae5e12633470326d7eba59e94b8': FS-8257 #resolve [verto_communicator] fix config provision url
This commit is contained in:
commit
6062570427
|
@ -130,6 +130,7 @@ module.exports = function (grunt) {
|
|||
],
|
||||
routes: {
|
||||
'/partials': 'src/partials',
|
||||
'/config.json': 'src/config.json',
|
||||
'/bower_components': './bower_components',
|
||||
'/js/src': '../js/src',
|
||||
'/js': './js'
|
||||
|
|
|
@ -25,7 +25,8 @@ vertoService.service('config', ['$rootScope', '$http', '$location', 'storage', '
|
|||
* Load the Configs before logging in
|
||||
* with cache buster
|
||||
*/
|
||||
var httpRequest = $http.get(window.location.pathname + '/config.json?cachebuster=' + Math.floor((Math.random()*1000000)+1));
|
||||
var url = window.location.origin + window.location.pathname;
|
||||
var httpRequest = $http.get(url + 'config.json?cachebuster=' + Math.floor((Math.random()*1000000)+1));
|
||||
|
||||
var httpReturn = httpRequest.then(function(response) {
|
||||
var data = response.data;
|
||||
|
|
Loading…
Reference in New Issue