Skip to content
This repository was archived by the owner on Jan 31, 2025. It is now read-only.

Commit 573815a

Browse files
author
Daniel Brain
committed
Fix isIframe logic
1 parent d796ff6 commit 573815a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/windows.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ export function isPopup() {
216216
}
217217

218218
export function isIframe() {
219-
return Boolean(getParent(window));
219+
return Boolean(getParent(window) && window !== getParent(window));
220220
}
221221

222222
export function isFullpage() {

0 commit comments

Comments
 (0)