Skip to content

Instantly share code, notes, and snippets.

@sadovnik
Last active December 10, 2015 18:17
Show Gist options
  • Save sadovnik/ef2ad4126e2b6c79df4b to your computer and use it in GitHub Desktop.
Save sadovnik/ef2ad4126e2b6c79df4b to your computer and use it in GitHub Desktop.
Проверка на айфрейм
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