diff options
Diffstat (limited to 'dist/js/login.js')
-rw-r--r-- | dist/js/login.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/dist/js/login.js b/dist/js/login.js index 4633306..ca663c2 100644 --- a/dist/js/login.js +++ b/dist/js/login.js @@ -23,7 +23,11 @@ function setupEventListeners() { function login() { let username = $("#username").val(); let password = $("#password").val(); - var gsecInstance = new gsec(); + try { + var gsecInstance = new gsec(); + } catch (error) { + alert(D("browserNotSupported")); + } gsecInstance.login(username, password).then( (value) => { if (typeof value == "string") { let promises_to_run = [ |