Last active
December 10, 2015 18:17
-
-
Save sadovnik/ef2ad4126e2b6c79df4b to your computer and use it in GitHub Desktop.
Проверка на айфрейм
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function isEmbedded () { | |
try { | |
return window.self !== window.top; | |
} catch (e) { | |
return true; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment