Skip to content

Commit b17990e

Browse files
author
Andrea Barbasso
committed
[UXP-155] extend Domino window with screen object
1 parent 475d8ba commit b17990e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

server.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ extendEnvironmentWithAppConfig(environment, appConfig);
8484
const _window = domino.createWindow(indexHtml);
8585

8686
// Assign the DOM window and document objects to the global object
87+
(_window as any).screen = {deviceXDPI: 0, logicalXDPI: 0};
8788
(global as any).window = _window;
8889
(global as any).document = _window.document;
8990
(global as any).navigator = _window.navigator;

0 commit comments

Comments
 (0)