window-framed.js 162 B

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