Skip to content

Commit a1af28b

Browse files
byseif21Miodec
andauthored
fix: download screenshot button was not shown (@byseif21) (monkeytypegame#6900)
Co-authored-by: Jack <[email protected]>
1 parent cc08930 commit a1af28b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontend/src/ts/test/test-screenshot.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,15 +366,15 @@ $(".pageTest").on("click", "#saveScreenshotButton", (event) => {
366366
$(document).on("keydown", (event) => {
367367
if (!(TestUI.resultVisible && ActivePage.get() === "test")) return;
368368
if (event.key !== "Shift") return;
369-
$("#typingTest #result #saveScreenshotButton i")
369+
$("#result #saveScreenshotButton i")
370370
.removeClass("far fa-image")
371371
.addClass("fas fa-download");
372372
});
373373

374374
$(document).on("keyup", (event) => {
375375
if (!(TestUI.resultVisible && ActivePage.get() === "test")) return;
376376
if (event.key !== "Shift") return;
377-
$("#typingTest #result #saveScreenshotButton i")
377+
$("#result #saveScreenshotButton i")
378378
.removeClass("fas fa-download")
379379
.addClass("far fa-image");
380380
});

0 commit comments

Comments
 (0)