Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
let requestPromise = ZalgoPromise.try(() => {
if (isAncestor(window, win)) {
return awaitWindowHello(win, options.timeout || CONFIG.CHILD_WINDOW_TIMEOUT);
}
}).then(({ domain: origin } = {}) => {
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] : {},
return ZalgoPromise.try(() => {
validateOptions(name, win, domain);
if (isAncestor(window, win)) {
return awaitWindowHello(win, childTimeout);
}
}).then(({ domain: actualDomain } = {}) => {