File: window-framed.js

package info (click to toggle)
modernizr 2.6.2%2Bds1-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,028 kB
  • sloc: makefile: 10
file content (8 lines) | stat: -rw-r--r-- 162 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8

// tests if page is iframed

// github.com/Modernizr/Modernizr/issues/242

Modernizr.addTest('framed', function(){
  return window.location != top.location;
});