UI: Expose theme as css custom props (#2380)

This commit is contained in:
Shy
2025-11-04 01:58:09 +01:00
committed by GitHub
parent e599988af7
commit 9cd3ffd308
2 changed files with 19 additions and 0 deletions

View File

@@ -26,5 +26,12 @@ export default class FixJSDOMEnvironment extends JSDOMEnvironment {
this.global.TextDecoderStream = TextDecoderStream;
this.global.URL = URL;
this.global.Response = Response;
/**
* https://github.com/jsdom/jsdom/issues/3766
* https://github.com/jsdom/jsdom/issues/3444
*/
this.global.document.adoptedStyleSheets = [];
this.global.CSSStyleSheet.prototype.replaceSync = () => {};
}
}