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 4902de9 commit 661b05aCopy full SHA for 661b05a
src/index.js
@@ -27,9 +27,6 @@ let themeCSS = { dark: [], light: [] };
27
let styleElSheet;
28
let parse;
29
30
-let linkTag = document.querySelector('link[parse], link[collection][document_id][name]');
31
-// let linkTag = document.querySelector('link[collection][document_id][name]:not([save="false"])');
32
-
33
function init(linkTag) {
34
if (linkTag) {
35
parse = linkTag.getAttribute('parse');
@@ -319,7 +316,9 @@ observer.init({
319
316
}
320
317
});
321
318
322
-init();
+let linkTag = document.querySelector('link[parse], link[collection][document_id][name]');
+if (linkTag)
+ init(linkTag);
323
324
export default {initElements};
325
0 commit comments