showing client version on version shift click

This commit is contained in:
Miodec 2022-03-16 18:49:39 +01:00
parent 8370768a17
commit 86dbe44487
2 changed files with 8 additions and 1 deletions

View file

@ -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();
});

View file

@ -1 +1,7 @@
export const CLIENT_VERSION = "DEVELOPMENT-CLIENT";
$(document.body).on("click", ".version", (e) => {
if (e.shiftKey) {
alert(CLIENT_VERSION);
}
});