g214/static/bower_components/modernizr/feature-detects/window-framed.js

9 lines
162 B
JavaScript

// tests if page is iframed
// github.com/Modernizr/Modernizr/issues/242
Modernizr.addTest('framed', function(){
return window.location != top.location;
});