diff --git a/src/js/script.js b/src/js/script.js index f8ed73f..bafa763 100644 --- a/src/js/script.js +++ b/src/js/script.js @@ -124,7 +124,7 @@ function escapeHtml(text) { "'": ''' }; - return text.replace(/[&<>"']/g, function(m) { return map[m]; }); + return text.toString().replace(/[&<>"']/g, function(m) { return map[m]; }); } function updateTooltip(el, text) { diff --git a/src/private/templates/body.latte b/src/private/templates/body.latte index d6634e3..22c1fe4 100644 --- a/src/private/templates/body.latte +++ b/src/private/templates/body.latte @@ -20,7 +20,7 @@ $navActiveIndex = isset($navActiveIndex) ? (int) $navActiveIndex : 0; {$tplutils::includeStylesheet("{cdnjs}/twitter-bootstrap/4.6.0/css/bootstrap.min.css", "sha256-T/zFmO5s/0aSwc6ics2KLxlfbewyRz6UNw1s3Ppf5gE=")} - + {$tplutils::includeStylesheet("{cdnjs}/font-awesome/5.15.2/css/all.min.css", "sha256-0fuNgzfNIlaClbDtmYyFxY8LTNCDrwsNshywr4AALy0=")} @@ -191,7 +191,7 @@ $navActiveIndex = isset($navActiveIndex) ? (int) $navActiveIndex : 0; {var $dayjslang = __get("DAYJS_LANG", [], true)} {if $dayjslang !== null && $dayjslang !== "en"} - {$tplutils::includeScript("{cdnjs}/dayjs/1.10.4/locale/$dayjslang.js")} + {$tplutils::includeScript("{cdnjs}/dayjs/1.10.4/locale/$dayjslang.min.js")}