Skip to content

Commit 035033f

Browse files
authored
Reduce jquery usage in jenkins.js (very simple start) (#10833)
2 parents 177995e + fdbbc9d commit 035033f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/main/js/util/jenkins.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,7 @@ var jenkins = {};
1010

1111
// gets the base Jenkins URL including context path
1212
jenkins.baseUrl = function () {
13-
var u = $("head").attr("data-rooturl");
14-
if (!u) {
15-
u = "";
16-
}
17-
return u;
13+
return document.head.dataset.rooturl;
1814
};
1915

2016
/**

0 commit comments

Comments
 (0)