mirror of
https://github.com/AykutSarac/jsoncrack.com.git
synced 2025-01-27 15:22:56 +08:00
fix isIFrame
This commit is contained in:
parent
c7358bbf7f
commit
a26cc56172
@ -1,5 +1,6 @@
|
||||
export function isIframe() {
|
||||
try {
|
||||
if (window === undefined) return false;
|
||||
return window.self !== window.top;
|
||||
} catch (e) {
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user