Skip to content

Commit

Permalink
add link base
Browse files Browse the repository at this point in the history
  • Loading branch information
okunishinishi committed Feb 1, 2013
1 parent 69db736 commit ee43dc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions agent/agn.jenkins.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ JenkinsAgent.prototype.getViews = function (callback) {
};
JenkinsAgent.prototype.getWhether = function (url, callback) {
var s = this;
var base = conf.url.base || (function (url) {
var base = (function (url) {
return [url.protocol, url.host].join('\/\/');
})(require('url').parse(url))
s.get(url, function (res, body, $) {
Expand All @@ -97,7 +97,7 @@ JenkinsAgent.prototype.getWhether = function (url, callback) {
if (name) {
data.push({
name:name,
link:[base, a.attr('href')].join('/'),
link:conf.url.base + a.attr('href'),
img:base + td.eq(1).find('img').attr('src')
});
}
Expand Down

0 comments on commit ee43dc7

Please sign in to comment.