friendly-frame

0.0.2 • Public • Published

Friendly Frame

Usage in child frame

XFrame detection

import { isXFrame } from "friendly-frame";
 
isXFrame(); // #=> true

To test if a window is used in an iFrame, pass a queryStringParameter (default is xframe=1) from the parent.

History syncing

import { initialize } from "friendly-frame";
 
const history = FriendlyFrame.initialize({
  initializeFromQueryStringParameter: true // Defaults to `initialPath`
});

/friendly-frame/

    Package Sidebar

    Install

    npm i friendly-frame

    Weekly Downloads

    0

    Version

    0.0.2

    License

    MIT

    Unpacked Size

    206 kB

    Total Files

    4

    Last publish

    Collaborators

    • dabbott