forked from MapComplete/MapComplete
Cleanup of the image carousel code and index.css code
This commit is contained in:
parent
21c71febca
commit
c7f33a9490
14 changed files with 190 additions and 318 deletions
4
index.ts
4
index.ts
|
@ -37,9 +37,9 @@ let defaultLayout = "bookcases"
|
|||
let hash = window.location.hash;
|
||||
|
||||
const path = window.location.pathname.split("/").slice(-1)[0];
|
||||
if (path !== "index.html") {
|
||||
if (path !== "index.html" && path !== "") {
|
||||
defaultLayout = path.substr(0, path.length - 5);
|
||||
console.log("Using layout", defaultLayout)
|
||||
console.log("Using layout", defaultLayout);
|
||||
}
|
||||
|
||||
// Run over all questsets. If a part of the URL matches a searched-for part in the layout, it'll take that as the default
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue