Skip to content

Commit

Permalink
head.dataset fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kuznetsov17 committed Jan 29, 2024
1 parent 96e74a0 commit 7e988c8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion static/js/init.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
document.addEventListener("DOMContentLoaded", function(event){
setStartTheme();
if (document.head.dataset['BuildSearchIndex'] == true) {
obj = document.head.dataset
for (const prop in obj) {
console.log(`obj.${prop} = ${obj[prop]}`);
}

if (document.head.dataset['buildSearchIndex'] == "true") {
initSearch();
}
});

0 comments on commit 7e988c8

Please sign in to comment.