mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-17 23:21:04 +00:00
17 lines
320 B
JavaScript
17 lines
320 B
JavaScript
/*!
|
|
{
|
|
"name": "Framed window",
|
|
"property": "framed",
|
|
"tags": ["window"],
|
|
"builderAliases": ["window_framed"]
|
|
}
|
|
!*/
|
|
/* DOC
|
|
Tests if page is iframed.
|
|
*/
|
|
define(['Modernizr'], function(Modernizr) {
|
|
// github.com/Modernizr/Modernizr/issues/242
|
|
|
|
Modernizr.addTest('framed', window.location !== top.location);
|
|
});
|