提交 ae2583fd authored 作者: Stefan Yohansson's avatar Stefan Yohansson

FS-8291 [verto_communicator] fix contributors url

上级 b514c9cd
...@@ -131,6 +131,7 @@ module.exports = function (grunt) { ...@@ -131,6 +131,7 @@ module.exports = function (grunt) {
routes: { routes: {
'/partials': 'src/partials', '/partials': 'src/partials',
'/config.json': 'src/config.json', '/config.json': 'src/config.json',
'/contributors.txt': 'src/contributors.txt',
'/bower_components': './bower_components', '/bower_components': './bower_components',
'/js/src': '../js/src', '/js/src': '../js/src',
'/js': './js' '/js': './js'
......
...@@ -6,7 +6,8 @@ ...@@ -6,7 +6,8 @@
.controller('ContributorsController', ['$scope', '$http', .controller('ContributorsController', ['$scope', '$http',
'toastr', 'toastr',
function($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) { .success(function(data) {
var contributors = []; var contributors = [];
...@@ -29,4 +30,4 @@ ...@@ -29,4 +30,4 @@
}); });
} }
]); ]);
})(); })();
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论