[MM-35245] Null check to prevent console error in preload script on unloaded server (#1582)
This commit is contained in:
parent
87bbad13fa
commit
7d333dfe8f
|
@ -63,7 +63,7 @@ window.addEventListener('load', () => {
|
|||
});
|
||||
|
||||
const parentTag = (target) => {
|
||||
if (target.parentNode) {
|
||||
if (target.parentNode && target.parentNode.tagName) {
|
||||
return target.parentNode.tagName.toUpperCase();
|
||||
}
|
||||
return null;
|
||||
|
|
Loading…
Reference in a new issue