fix isIFrame

This commit is contained in:
AykutSarac 2024-02-03 12:59:12 +03:00
parent c7358bbf7f
commit a26cc56172
No known key found for this signature in database

View File

@ -1,5 +1,6 @@
export function isIframe() {
try {
if (window === undefined) return false;
return window.self !== window.top;
} catch (e) {
return true;