@lvce-editor/renderer-process 24.0.0 → 24.1.0
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.
|
@@ -130,15 +130,15 @@ const get$a = id => {
|
|
|
130
130
|
return state$9.styleSheets[id];
|
|
131
131
|
};
|
|
132
132
|
|
|
133
|
-
const addCssStyleSheet =
|
|
133
|
+
const addCssStyleSheet = (id, text) => {
|
|
134
134
|
const existing = get$a(id);
|
|
135
135
|
if (existing) {
|
|
136
|
-
|
|
136
|
+
existing.replaceSync(text);
|
|
137
137
|
return;
|
|
138
138
|
}
|
|
139
139
|
const sheet = new CSSStyleSheet({});
|
|
140
140
|
set$9(id, sheet);
|
|
141
|
-
|
|
141
|
+
sheet.replaceSync(text);
|
|
142
142
|
document.adoptedStyleSheets.push(sheet);
|
|
143
143
|
};
|
|
144
144
|
const getSelectionText = () => {
|