Use document.head instead of getElementByTagName

This commit is contained in:
Maximilian Krög
2022-05-15 21:34:26 +02:00
parent 30358b61a9
commit 72d61f887d
6 changed files with 10 additions and 11 deletions

View File

@@ -36,7 +36,7 @@ describe('ol/net', function () {
});
describe('jsonp()', function () {
const head = document.getElementsByTagName('head')[0];
const head = document.head;
const origAppendChild = head.appendChild;
const origCreateElement = document.createElement;
const origSetTimeout = setTimeout;