mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-10 14:10:59 +08:00
showing client version on version shift click
This commit is contained in:
parent
8370768a17
commit
86dbe44487
2 changed files with 8 additions and 1 deletions
|
|
@ -5,7 +5,8 @@ export function show(): void {
|
|||
.animate({ opacity: 1 }, 125);
|
||||
}
|
||||
|
||||
$(document.body).on("click", ".version", () => {
|
||||
$(document.body).on("click", ".version", (e) => {
|
||||
if (e.shiftKey) return;
|
||||
show();
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -1 +1,7 @@
|
|||
export const CLIENT_VERSION = "DEVELOPMENT-CLIENT";
|
||||
|
||||
$(document.body).on("click", ".version", (e) => {
|
||||
if (e.shiftKey) {
|
||||
alert(CLIENT_VERSION);
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue