mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-15 08:29:45 +00:00
FS-8257 #resolve [verto_communicator] fix config provision url
This commit is contained in:
parent
0c5a97739e
commit
d8d7a9f352
@ -130,6 +130,7 @@ module.exports = function (grunt) {
|
|||||||
],
|
],
|
||||||
routes: {
|
routes: {
|
||||||
'/partials': 'src/partials',
|
'/partials': 'src/partials',
|
||||||
|
'/config.json': 'src/config.json',
|
||||||
'/bower_components': './bower_components',
|
'/bower_components': './bower_components',
|
||||||
'/js/src': '../js/src',
|
'/js/src': '../js/src',
|
||||||
'/js': './js'
|
'/js': './js'
|
||||||
|
@ -25,7 +25,8 @@ vertoService.service('config', ['$rootScope', '$http', '$location', 'storage', '
|
|||||||
* Load the Configs before logging in
|
* Load the Configs before logging in
|
||||||
* with cache buster
|
* 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 httpReturn = httpRequest.then(function(response) {
|
||||||
var data = response.data;
|
var data = response.data;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user