diff options
Diffstat (limited to 'assets')
-rw-r--r-- | assets/js/login.js | 5 |
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")); } |