Skip to content

Commit

Permalink
fix: update css-parse attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
frankpagan committed Jun 18, 2022
1 parent 6068812 commit f1c56b7
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/css-parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,11 @@ let styleElSheet;
let linkTag = document.querySelector('link[collection][document_id][name]:not([save="false"])');

function init() {
if (document.querySelector('link[parse="false"]'))
return;
let parse;
if (linkTag)
parse = linkTag.getAttribute('parse');
// if (document.querySelector('link[parse="false"]'))
// return;

let styleEl = document.createElement("style");
styleEl.setAttribute('component', 'CoCreateCss');
Expand All @@ -33,8 +36,10 @@ function init() {

parseLinkCSS();

let elements = document.querySelectorAll("[class]");
initElements(elements);
if (parse != false) {
let elements = document.querySelectorAll("[class]");
initElements(elements);
}

observerInit();
}
Expand Down

0 comments on commit f1c56b7

Please sign in to comment.