Clean up eslint annotations and remove unused JS function

This commit is contained in:
Guillaume Gomez 2023-01-26 18:03:37 +01:00
parent 7c4a9a971c
commit 0a1f14a0e6
2 changed files with 0 additions and 2 deletions

View File

@ -180,7 +180,6 @@ function browserSupportsHistoryApi() {
return window.history && typeof window.history.pushState === "function";
}
// eslint-disable-next-line no-unused-vars
function loadCss(cssUrl) {
const link = document.createElement("link");
link.href = cssUrl;

View File

@ -51,7 +51,6 @@ function hasClass(elem, className) {
return elem && elem.classList && elem.classList.contains(className);
}
// eslint-disable-next-line no-unused-vars
function addClass(elem, className) {
if (!elem || !elem.classList) {
return;