Skip to content

Commit

Permalink
remove tla
Browse files Browse the repository at this point in the history
  • Loading branch information
guyutongxue committed Jan 1, 2025
1 parent 11af438 commit a856287
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/client/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ import allIcons from "../output/buffIconList.json";

import "./style.css";

const buffIconMapping = await fetch(
`https://raw.githubusercontent.com/genius-invokation/genius-invokation/refs/heads/main/packages/static-data/scripts/mappings/buff_icons.json`,
).then((r) => r.json());
let buffIconMapping: Record<string, string> = {};

const entities = allEntities.filter(
(entity) => !entity.hidden && !("cardFace" in entity),
Expand Down Expand Up @@ -133,4 +131,9 @@ exportBtn.addEventListener("click", () => {
a.click();
});

refresh();
fetch(
`https://raw.githubusercontent.com/genius-invokation/genius-invokation/refs/heads/main/packages/static-data/scripts/mappings/buff_icons.json`,
)
.then((r) => r.json())
.then((r) => (buffIconMapping = r))
.then(refresh);

0 comments on commit a856287

Please sign in to comment.