Use correct document when creating elements

This commit is contained in:
Daniel Imms
2023-10-16 11:09:36 -07:00
parent 4245283e05
commit c80453f602
12 changed files with 40 additions and 28 deletions
+5
View File
@@ -34,6 +34,11 @@ export interface ICoreBrowserService {
* window.
*/
readonly window: Window & typeof globalThis;
/**
* The document of the primary window if working with multiple windows. This
* is set by the documentOverride setting.
*/
readonly mainDocument: Document;
/**
* Helper for getting the devicePixelRatio of the parent window.
*/