summaryrefslogtreecommitdiffstats
path: root/assets/js
diff options
context:
space:
mode:
authorsijanec <sijanecantonluka@gmail.com>2020-05-20 15:57:40 +0200
committersijanec <sijanecantonluka@gmail.com>2020-05-20 15:57:40 +0200
commita078f237a622d6aa01e07199769e427217d79d1c (patch)
tree5858340a8081e7207117acad66e7639e28d221e6 /assets/js
parentthis is also not a fix (diff)
downloadbeziapp-a078f237a622d6aa01e07199769e427217d79d1c.tar
beziapp-a078f237a622d6aa01e07199769e427217d79d1c.tar.gz
beziapp-a078f237a622d6aa01e07199769e427217d79d1c.tar.bz2
beziapp-a078f237a622d6aa01e07199769e427217d79d1c.tar.lz
beziapp-a078f237a622d6aa01e07199769e427217d79d1c.tar.xz
beziapp-a078f237a622d6aa01e07199769e427217d79d1c.tar.zst
beziapp-a078f237a622d6aa01e07199769e427217d79d1c.zip
Diffstat (limited to '')
-rw-r--r--assets/js/login.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/assets/js/login.js b/assets/js/login.js
index 3094b5e..fe56c53 100644
--- a/assets/js/login.js
+++ b/assets/js/login.js
@@ -23,12 +23,13 @@ function setupEventListeners() {
function login() {
let username = $("#username").val();
let password = $("#password").val();
+ var gsecInstance;
try {
- var gsecInstance = new gsec();
+ gsecInstance = new gsec();
} catch (error) {
$.getScript("/js/gsec.js");
try {
- var gsecInstance = new gsec();
+ gsecInstance = new gsec();
} catch (error) {
alert(D("browserNotSupported"));
}