]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-8257 #resolve [verto_communicator] fix config provision url
authorStefan Yohansson <stefan@evolux.net.br>
Wed, 30 Sep 2015 19:03:13 +0000 (16:03 -0300)
committerStefan Yohansson <stefan@evolux.net.br>
Wed, 30 Sep 2015 19:03:13 +0000 (16:03 -0300)
html5/verto/verto_communicator/Gruntfile.js
html5/verto/verto_communicator/src/vertoService/services/configService.js

index c68642c8a7a9b121ead0ca8d6c62d5132fa6a1f8..32838235a04da716fb1f69c2600a0603e1963e2e 100644 (file)
@@ -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'
index 924488f733d7a027d70df1d4340921d2f5daa94b..105a20b324045ecfe770dd543c9dd18000420e6e 100644 (file)
@@ -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;