]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-8291 [verto_communicator] fix contributors url
authorStefan Yohansson <stefan@evolux.net.br>
Fri, 2 Oct 2015 20:57:46 +0000 (17:57 -0300)
committerStefan Yohansson <stefan@evolux.net.br>
Fri, 2 Oct 2015 20:57:46 +0000 (17:57 -0300)
html5/verto/verto_communicator/Gruntfile.js
html5/verto/verto_communicator/src/vertoControllers/controllers/ContributorsController.js

index 32838235a04da716fb1f69c2600a0603e1963e2e..4fc5966ee0dfab4eb1d47ec167050f122dd50f24 100644 (file)
@@ -131,6 +131,7 @@ module.exports = function (grunt) {
             routes: {
               '/partials': 'src/partials',
               '/config.json': 'src/config.json',
+              '/contributors.txt': 'src/contributors.txt',
               '/bower_components': './bower_components',
               '/js/src': '../js/src',
               '/js': './js'
index c66f4213464b1cc1dffcafd8565d86c14c0d39a0..aa00f64e04ba613858dbc774d3eb622877e59424 100644 (file)
@@ -6,7 +6,8 @@
     .controller('ContributorsController', ['$scope', '$http',
       'toastr',
       function($scope, $http, toastr) {
-        $http.get(window.location.pathname + '/contributors.txt')
+        var url = window.location.origin + window.location.pathname;
+        $http.get(url + 'contributors.txt')
           .success(function(data) {
 
             var contributors = [];
@@ -29,4 +30,4 @@
           });
       }
     ]);
-})();
\ No newline at end of file
+})();