Skip to content

Commit 894272b

Browse files
author
minjk-bl
committed
small changes
1 parent aeee4da commit 894272b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/com/com_util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ define([
140140
*/
141141
var removeHeadScript = function(scriptName) {
142142
for (let i = 0; i < document.querySelector('head').children.length; i++){
143-
if (document.querySelector('head').children[i].outerHTML.includes(scriptName)) {
143+
if (document.querySelector('head') && document.querySelector('head').children[i].outerHTML.includes(scriptName)) {
144144
document.querySelector('head').removeChild(document.querySelector('head').children[i]);
145145
}
146146
}

0 commit comments

Comments
 (0)