From 7e988c89c5523f265b6134c66e12a2e2d15195f3 Mon Sep 17 00:00:00 2001 From: kuznetsov17 Date: Mon, 29 Jan 2024 15:04:33 +0200 Subject: [PATCH] head.dataset fixes --- static/js/init.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/static/js/init.js b/static/js/init.js index 20f76a5..d67d844 100644 --- a/static/js/init.js +++ b/static/js/init.js @@ -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(); } }); \ No newline at end of file