Skip to content

Instantly share code, notes, and snippets.

Created March 14, 2016 03:41
What would you like to do?
check if current page is iframe
'isInFrame': function () {
try {
return window.self !==;
catch (e) {
return true;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment