Fixes monaco-editor nightly build (needed for verification)

This commit is contained in:
Henning Dieterichs 2024-01-23 16:39:35 +01:00 committed by Henning Dieterichs
parent 6c7087b94e
commit b0330f8eed
4 changed files with 87 additions and 8 deletions

View file

@ -26,6 +26,10 @@ global.UIEvent = tmp.window.UIEvent;
global.window = {
location: {},
navigator: tmp.window.navigator,
document: {
body: tmp.window.document.body,
addEventListener: (...args) => tmp.window.document.addEventListener(...args)
},
matchMedia: function () {
return {
matches: false,