How to use the cross-domain-utils/src.isAncestor function in cross-domain-utils

To help you get started, we’ve selected a few cross-domain-utils examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github krakenjs / post-robot / src / public / client.js View on Github external
let requestPromise = ZalgoPromise.try(() => {

            if (isAncestor(window, win)) {
                return awaitWindowHello(win, options.timeout || CONFIG.CHILD_WINDOW_TIMEOUT);
            }

        }).then(({ domain: origin } = {}) => {
github krakenjs / post-robot / dist / module / public / client.js View on Github external
var requestPromise = ZalgoPromise['try'](function () {

            if (isAncestor(window, win)) {
                return awaitWindowHello(win, options.timeout || CONFIG.CHILD_WINDOW_TIMEOUT);
            }
        }).then(function () {
            var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
github krakenjs / post-robot / src / public / send.js View on Github external
return ZalgoPromise.try(() => {
        validateOptions(name, win, domain);

        if (isAncestor(window, win)) {
            return awaitWindowHello(win, childTimeout);
        }
        
    }).then(({ domain: actualDomain } = {}) => {