Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
enableStandardCardFields: false,
enableNativeCheckout: false
};
window.Promise.try = (method) => {
return window.Promise.resolve().then(method);
};
const buttonsContainer = document.querySelector('#buttons-container') || document.createElement('div');
buttonsContainer.id = 'buttons-container';
destroyElement(buttonsContainer);
body.appendChild(buttonsContainer);
const cardContainer = document.querySelector('#card-fields-container') || document.createElement('div');
cardContainer.id = 'card-fields-container';
destroyElement(cardContainer);
body.appendChild(cardContainer);
}
setTimeout(() => {
window.close();
if (window.frameElement) {
destroyElement(window.frameElement);
}
}, 1);
throw new Error(`No xprops found`);
value: () => {
destroyers.forEach(destroy => destroy());
destroyElement(getSDKScript());
delete window[namespace];
}
});
this.clean.register(() => destroyElement(prerenderFrame));
setTimeout(function () {
if (_this3.prerenderIframe) {
destroyElement(_this3.prerenderIframe);
}
}, 1000);
},
setTimeout(() => {
destroyElement(prerenderFrame);
}, 1000);
});
setTimeout(() => {
destroyElement(prerenderFrame);
}, 1);
});
_this2.clean.register('destroyPrerender', function () {
destroyElement(prerenderIframe);
});
setTimeout(() => {
destroyElement(prerenderFrame);
}, 1);
});