Create main html

This commit is contained in:
2021-05-18 01:02:10 +05:00
parent 3afa9557fa
commit d771cf45e5
285 changed files with 113612 additions and 2862 deletions

View File

@@ -0,0 +1,9 @@
/**
* Get the window associated with the element
* @argument {Element} element
* @returns {Window}
*/
export default function getWindow(element) {
const ownerDocument = element.ownerDocument;
return ownerDocument ? ownerDocument.defaultView : window;
}