We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa86b48 commit e6920f1Copy full SHA for e6920f1
src/main/js/util/jenkins.js
@@ -10,7 +10,8 @@ var jenkins = {};
10
11
// gets the base Jenkins URL including context path
12
jenkins.baseUrl = function () {
13
- var u = $("head").attr("data-rooturl");
+ const head = document.querySelector("head");
14
+ let u = head ? head.getAttribute("data-rooturl") : "";
15
if (!u) {
16
u = "";
17
}
0 commit comments