summaryrefslogtreecommitdiffstats
path: root/assets/js/login.js
diff options
context:
space:
mode:
Diffstat (limited to 'assets/js/login.js')
-rw-r--r--assets/js/login.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/assets/js/login.js b/assets/js/login.js
index 4633306..ca663c2 100644
--- a/assets/js/login.js
+++ b/assets/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 = [