modernizr-framed
v1.0.2
Published
Modernizr test for frame detection
Downloads
3
Readme
modernizr-framed
The extension detects if page loaded inside frame and if it does AND there is an global option NO_FRAMED
is set to true
then script loads the page inside root window.
Instalation
npm install modernizr-framed --save
or
yarn add modernizr-framed
or
bower install modernizr-framed
Usage
<script>
window.NO_FRAMED = true;
</script>
<script src="path/to/modernizr.js"></script>
<script src="https://unpkg.com/[email protected]/modernizr-framed.js"></script>
License
modernizr-framed is released under the Apache-2.0 license.