Skip to content

Commit fdbbc9d

Browse files
committed
applied suggestion
1 parent e6920f1 commit fdbbc9d

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/main/js/util/jenkins.js

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

1111
// gets the base Jenkins URL including context path
1212
jenkins.baseUrl = function () {
13-
const head = document.querySelector("head");
14-
let u = head ? head.getAttribute("data-rooturl") : "";
15-
if (!u) {
16-
u = "";
17-
}
18-
return u;
13+
return document.head.dataset.rooturl;
1914
};
2015

2116
/**

0 commit comments

Comments
 (0)