Skip to content

Commit fe6c992

Browse files
authored
Merge pull request #542 from rteitge/8.1.x
change window.parent.document to window.parent.frames
2 parents cfcb4c3 + 43a3d9d commit fe6c992

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Resources/Public/JavaScript/ParentWindow.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ define([
55
const getParent = () => {
66
if (
77
typeof window.parent !== 'undefined' &&
8-
typeof window.parent.document.list_frame !== 'undefined' &&
8+
typeof window.parent.frames !== 'undefined' &&
9+
typeof window.parent.frames.list_frame !== 'undefined' &&
910
window.parent.frames.list_frame.parent.document.querySelector('.t3js-modal-iframe') !== null &&
1011
window.parent.frames.list_frame.parent.document.querySelectorAll('.t3js-modal-iframe').length > 1
1112
) {

0 commit comments

Comments
 (0)