UNPKG

react-klasha

Version:

This is an reactJS library for implementing klasha payment gateway

18 lines (16 loc) 426 B
/** * Return the document or document fragment (shadow DOM) * @method getRootNode * @memberof axe.utils * @param {Element} node * @returns {DocumentFragment|Document} */ function getRootNode(node) { var doc = (node.getRootNode && node.getRootNode()) || document; // this is for backwards compatibility if (doc === node) { // disconnected node doc = document; } return doc; } export default getRootNode;