summaryrefslogtreecommitdiffstats
path: root/assets/js
diff options
context:
space:
mode:
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"));
}