We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45c0009 commit d9f84d7Copy full SHA for d9f84d7
1 file changed
packages/blockly/core/renderers/common/constants.ts
@@ -1124,6 +1124,8 @@ export class ConstantProvider {
1124
* @param selector The CSS selector to interpolate into the stylesheet.
1125
*/
1126
protected injectCSS_(root: Document | ShadowRoot, selector: string) {
1127
+ if (typeof window === 'undefined' || !window.CSSStyleSheet) return;
1128
+
1129
const sheet = new CSSStyleSheet();
1130
sheet.replaceSync(this.getCSS_(selector).join('\n'));
1131
root.adoptedStyleSheets.push(sheet);
0 commit comments