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 eafce3e commit d03c2cfCopy full SHA for d03c2cf
src/index.js
@@ -275,14 +275,15 @@ function addNewRules() {
275
low = index + 1;
276
}
277
278
- if (low > styleElSheet.cssRules.length) low = styleElSheet.cssRules.length;
+ if (low > styleElSheet.cssRules.length)
279
+ low = styleElSheet.cssRules.length;
280
try {
281
styleElSheet.insertRule(rule, low);
282
+ parsedCSS.splice(low, 0, rule);
283
284
catch (err) {
285
console.error(err);
286
- parsedCSS.splice(low, 0, rule);
287
288
if (tempStyleList.length > 0)
289
if (linkTag.save)
0 commit comments