aboutsummaryrefslogtreecommitdiff
path: root/static/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'static/index.js')
-rw-r--r--static/index.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/static/index.js b/static/index.js
index a7211e2..e9ef859 100644
--- a/static/index.js
+++ b/static/index.js
@@ -102,4 +102,8 @@ document.body.append(
month_select,
);
-login.focus();
+if (await api.session.is_valid()) {
+ login.hide();
+} else {
+ login.focus();
+}