[MM-35245] Null check to prevent console error in preload script on unloaded server (#1582)
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user