mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2026-01-05 23:15:08 +08:00
fixed login tip appearing
This commit is contained in:
parent
2d4aab9b23
commit
1701315560
1 changed files with 6 additions and 3 deletions
|
|
@ -273,14 +273,16 @@ function copyResultToClipboard() {
|
|||
showNotification("Copied to clipboard", 1000);
|
||||
$(".pageTest .ssWatermark").addClass("hidden");
|
||||
$(".pageTest .buttons").removeClass("hidden");
|
||||
$(".pageTest .loginTip").removeClass("hidden");
|
||||
if (firebase.auth().currentUser == null)
|
||||
$(".pageTest .loginTip").removeClass("hidden");
|
||||
})
|
||||
.catch((f) => {
|
||||
$(".notification").removeClass("hidden");
|
||||
showNotification("Error saving image to clipboard", 2000);
|
||||
$(".pageTest .ssWatermark").addClass("hidden");
|
||||
$(".pageTest .buttons").removeClass("hidden");
|
||||
$(".pageTest .loginTip").removeClass("hidden");
|
||||
if (firebase.auth().currentUser == null)
|
||||
$(".pageTest .loginTip").removeClass("hidden");
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
@ -289,7 +291,8 @@ function copyResultToClipboard() {
|
|||
showNotification("Error creating image", 2000);
|
||||
$(".pageTest .ssWatermark").addClass("hidden");
|
||||
$(".pageTest .buttons").removeClass("hidden");
|
||||
$(".pageTest .loginTip").removeClass("hidden");
|
||||
if (firebase.auth().currentUser == null)
|
||||
$(".pageTest .loginTip").removeClass("hidden");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue