mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-12 23:23:34 +08:00
fix: download screenshot button was not shown (@byseif21) (#6900)
Co-authored-by: Jack <jack@monkeytype.com>
This commit is contained in:
parent
cc08930de3
commit
a1af28bb5d
1 changed files with 2 additions and 2 deletions
|
|
@ -366,7 +366,7 @@ $(".pageTest").on("click", "#saveScreenshotButton", (event) => {
|
|||
$(document).on("keydown", (event) => {
|
||||
if (!(TestUI.resultVisible && ActivePage.get() === "test")) return;
|
||||
if (event.key !== "Shift") return;
|
||||
$("#typingTest #result #saveScreenshotButton i")
|
||||
$("#result #saveScreenshotButton i")
|
||||
.removeClass("far fa-image")
|
||||
.addClass("fas fa-download");
|
||||
});
|
||||
|
|
@ -374,7 +374,7 @@ $(document).on("keydown", (event) => {
|
|||
$(document).on("keyup", (event) => {
|
||||
if (!(TestUI.resultVisible && ActivePage.get() === "test")) return;
|
||||
if (event.key !== "Shift") return;
|
||||
$("#typingTest #result #saveScreenshotButton i")
|
||||
$("#result #saveScreenshotButton i")
|
||||
.removeClass("fas fa-download")
|
||||
.addClass("far fa-image");
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue