@lvce-editor/renderer-process 30.81.1 → 30.81.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -5352,18 +5352,20 @@ const remove$2 = id => {
|
|
|
5352
5352
|
const addCssStyleSheet = (id, text) => {
|
|
5353
5353
|
const existing = get$5(id);
|
|
5354
5354
|
if (existing) {
|
|
5355
|
-
|
|
5356
|
-
|
|
5355
|
+
if (typeof text !== 'string' || getText(id) !== text) {
|
|
5356
|
+
existing.replaceSync(text);
|
|
5357
|
+
setText$1(id, text);
|
|
5358
|
+
}
|
|
5357
5359
|
if (id === 'ContributedColorTheme') {
|
|
5358
5360
|
window.dispatchEvent(new Event('color-theme-changed'));
|
|
5359
5361
|
}
|
|
5360
5362
|
return;
|
|
5361
5363
|
}
|
|
5362
5364
|
const sheet = new CSSStyleSheet({});
|
|
5363
|
-
set$6(id, sheet);
|
|
5364
|
-
setText$1(id, text);
|
|
5365
5365
|
sheet.replaceSync(text);
|
|
5366
5366
|
document.adoptedStyleSheets.push(sheet);
|
|
5367
|
+
set$6(id, sheet);
|
|
5368
|
+
setText$1(id, text);
|
|
5367
5369
|
if (id === 'ContributedColorTheme') {
|
|
5368
5370
|
window.dispatchEvent(new Event('color-theme-changed'));
|
|
5369
5371
|
}
|