mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-18 07:18:38 +02:00
UI: Expose theme as css custom props (#2380)
This commit is contained in:
@@ -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 = () => {};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user