Skip to content

Commit a88d249

Browse files
committed
Fix issue with tests
1 parent dcc8bd4 commit a88d249

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ts/ui/dialog/DraggableDialog.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323

2424
import { DOMAdaptor } from '../../core/DOMAdaptor.js';
2525
import { StyleJson, StyleJsonSheet } from '../../util/StyleJson.js';
26+
import { context } from '../../util/context.js';
2627

2728
export type ADAPTOR = DOMAdaptor<HTMLElement, Text, Document>;
2829

@@ -49,7 +50,7 @@ export type DialogArgs = {
4950
/**
5051
* True if we can rely on an HTML dialog element.
5152
*/
52-
export const isDialog: boolean = !!window.HTMLDialogElement;
53+
export const isDialog: boolean = !!context.window?.HTMLDialogElement;
5354

5455
/*========================================================================*/
5556

0 commit comments

Comments
 (0)