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 3fb7f44 commit 95699bbCopy full SHA for 95699bb
src/index.js
@@ -220,22 +220,18 @@ function addNewRules() {
220
parsedCSS.splice(low, 0, rule);
221
}
222
if (tempStyleList.length > 0)
223
- save()
224
- tempStyleList = []
+ save();
+ tempStyleList = [];
225
226
227
function save() {
228
if (linkTag) {
229
const onlyUnique = (value, index, self) => {
230
return self.indexOf(value) === index;
231
- }
+ };
232
233
let css = parsedCSS.concat(linkCSS).filter(onlyUnique);
234
- var data = [{
235
- element: linkTag,
236
- value: css.join('\r\n'),
237
- }];
238
- crud.save(data)
+ crud.save(linkTag, css.join('\r\n'));
239
240
241
0 commit comments