fix: use replacesync instead of replace
This commit is contained in:
@@ -12,7 +12,7 @@ const createCssStyleSheet = (): IStyleSheet => {
|
||||
document.adoptedStyleSheets.splice(index, 1);
|
||||
},
|
||||
setCss(css) {
|
||||
sheet.replace(css);
|
||||
sheet.replaceSync(css);
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user