We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dcc8bd4 commit a88d249Copy full SHA for a88d249
ts/ui/dialog/DraggableDialog.ts
@@ -23,6 +23,7 @@
23
24
import { DOMAdaptor } from '../../core/DOMAdaptor.js';
25
import { StyleJson, StyleJsonSheet } from '../../util/StyleJson.js';
26
+import { context } from '../../util/context.js';
27
28
export type ADAPTOR = DOMAdaptor<HTMLElement, Text, Document>;
29
@@ -49,7 +50,7 @@ export type DialogArgs = {
49
50
/**
51
* True if we can rely on an HTML dialog element.
52
*/
-export const isDialog: boolean = !!window.HTMLDialogElement;
53
+export const isDialog: boolean = !!context.window?.HTMLDialogElement;
54
55
/*========================================================================*/
56
0 commit comments