Skip to content

Commit e6920f1

Browse files
committed
reduce jquery usage
1 parent fa86b48 commit e6920f1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/js/util/jenkins.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ var jenkins = {};
1010

1111
// gets the base Jenkins URL including context path
1212
jenkins.baseUrl = function () {
13-
var u = $("head").attr("data-rooturl");
13+
const head = document.querySelector("head");
14+
let u = head ? head.getAttribute("data-rooturl") : "";
1415
if (!u) {
1516
u = "";
1617
}

0 commit comments

Comments
 (0)