check for trailing slash
This commit is contained in:
parent
cbbd0ea31b
commit
a7147ba678
3 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue