Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
amandasaurus committed Apr 8, 2024
1 parent a93c6d7 commit cbe70b5
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions docs/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,14 @@ document.addEventListener("alpine:init", async () => {
let len_filter = decodeFilterParams(params.get("len") ?? "");
let selected_tileset_key = params.get("tiles") ?? tilesets.selected_tileset;
if (!(selected_tileset_key in tilesets.tilesets)) {
console.error("The selected tileset "+selected_tileset_key+" doesn't exist, using default of "+tilesets.selected_tileset+" instead.");
selected_tileset_key = tilesets.selected_tileset;
console.error(
"The selected tileset " +
selected_tileset_key +
" doesn't exist, using default of " +
tilesets.selected_tileset +
" instead.",
);
selected_tileset_key = tilesets.selected_tileset;
}
Alpine.store("selected_tileset", selected_tileset_key);
Alpine.store("tilesets_loaded", true);
Expand Down

0 comments on commit cbe70b5

Please sign in to comment.