@hcaptcha/react-hcaptcha
Version:
A React library for hCaptcha
16 lines (12 loc) • 313 B
JavaScript
function getFrame(element) {
const doc = (element && element.ownerDocument) || document;
const win = doc.defaultView || doc.parentWindow || window;
return { document: doc, window: win };
}
function getMountElement(element) {
return element || document.head;
}
export {
getFrame,
getMountElement
};