Create main html
This commit is contained in:
9
Diagram-Canvas/packages/popper.js.1.16.1/content/Scripts/src/utils/getWindow.js
vendored
Normal file
9
Diagram-Canvas/packages/popper.js.1.16.1/content/Scripts/src/utils/getWindow.js
vendored
Normal 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;
|
||||
}
|
Reference in New Issue
Block a user