Skip to content

Commit

Permalink
fix JS
Browse files Browse the repository at this point in the history
  • Loading branch information
amandasaurus committed Apr 22, 2024
1 parent 0ffaa38 commit e441ec4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/js/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ document.addEventListener("alpine:init", async () => {
let params = new URLSearchParams((location.hash ?? "#").substr(1));
let len_filter = decodeFilterParams(params.get("len") ?? "");
let selected_tileset_key = params.get("tiles") ?? tilesets.selected_tileset;
if (!(selected_tileset_key in tilesets.tilesets)) {
if (!tilesets.tilesets.map(t => t.key).some(t => selected_tileset_key == t)) {
console.error(
"The selected tileset " +
selected_tileset_key +
Expand Down

0 comments on commit e441ec4

Please sign in to comment.