aboutsummaryrefslogtreecommitdiffstats
path: root/src/Images.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/Images.ts')
-rw-r--r--src/Images.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Images.ts b/src/Images.ts
index f67ef30..d79c09a 100644
--- a/src/Images.ts
+++ b/src/Images.ts
@@ -164,9 +164,11 @@ export async function loadAllImages() {
// IMGS[key as keyof typeof IMGS] = await asyncImageLoader(URL + "src/imgs/" + toKebabCase(key) + ".png") as any
}
const imgs = await Promise.all(prImgs)
- for (const [i, key] of Object.keys(IMGS).entries()) {
+ let i = 0;
+ for (const key of Object.keys(IMGS)) {
if (["empty", "font", "start"].includes(key)) continue;
IMGS[key as keyof typeof IMGS] = imgs[i]
+ i++;
}
const prLetters = {} as { [key: string]: Promise<HTMLImageElement>[] }