check for trailing slash

This commit is contained in:
unknown 2020-05-10 11:42:05 +01:00
parent cbbd0ea31b
commit a7147ba678
3 changed files with 3 additions and 3 deletions

View file

@ -57,7 +57,7 @@
var fileref = document.createElement("link");
fileref.rel = "stylesheet";
fileref.type = "text/css";
fileref.href = `${baseUrl}/${themeName}.css`;
fileref.href = `${baseUrl}${baseUrl.slice(-1) !== "/" ? "/" : ""}${themeName}.css`;
fileref.id = themeName;
//append it to the head