mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-17 02:56:16 +08:00
add time and date of when screenshot was taken (#1784) by Odyssey346
* add time and date of when screenshot was taken Signed-off-by: Alexander Johansen <odyssey346@disroot.org> * updated format Co-authored-by: Jack <bartnikjack@gmail.com>
This commit is contained in:
parent
aeb1a47c89
commit
e76bc75a58
1 changed files with 7 additions and 1 deletions
|
@ -209,9 +209,15 @@ export async function screenshot() {
|
|||
}
|
||||
$("#resultReplay").addClass("hidden");
|
||||
$(".pageTest .ssWatermark").removeClass("hidden");
|
||||
$(".pageTest .ssWatermark").text(
|
||||
moment(Date.now()).format("DD MMM YYYY HH:mm") + " | monkeytype.com "
|
||||
);
|
||||
if (firebase.auth().currentUser != null) {
|
||||
$(".pageTest .ssWatermark").text(
|
||||
DB.getSnapshot().name + " | monkeytype.com"
|
||||
DB.getSnapshot().name +
|
||||
" | " +
|
||||
moment(Date.now()).format("DD MMM YYYY HH:mm") +
|
||||
" | monkeytype.com "
|
||||
);
|
||||
}
|
||||
$(".pageTest .buttons").addClass("hidden");
|
||||
|
|
Loading…
Add table
Reference in a new issue