Skip to content

Commit

Permalink
Added metadata to Modernizr.framed
Browse files Browse the repository at this point in the history
  • Loading branch information
stucox committed May 30, 2013
1 parent ea17d40 commit fe85d9d
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion feature-detects/window/framed.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
/*!
{
"name": "Framed window",
"property": "framed",
"tags": ["window"]
}
!*/
/* DOC
Tests if page is iframed.
*/
define(['Modernizr'], function( Modernizr ) {
// tests if page is iframed
// github.com/Modernizr/Modernizr/issues/242

Modernizr.addTest('framed', window.location != top.location);
Expand Down

0 comments on commit fe85d9d

Please sign in to comment.