Skip to content

Commit 38e007e

Browse files
authored
Update template.js
1 parent 4066f26 commit 38e007e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

template.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ for (const template of document.getElementsByTagName('template')) {
77
.then(content => {
88
const html = document.createElement('html');
99
html.innerHTML = content;
10-
document.head.innerHTML += html.getElementsByTagName('head')[0].innerHTML;
10+
document.head.lastChild.insertAdjacentHTML('afterend', html.getElementsByTagName('head')[0].innerHTML);
1111
template.insertAdjacentHTML('afterend', html.getElementsByTagName('body')[0].innerHTML);
1212
});
1313
}

0 commit comments

Comments
 (0)