diff options
-rw-r--r-- | web/share/js/login/main.js | 2 | ||||
-rw-r--r-- | web/share/js/wm.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/web/share/js/login/main.js b/web/share/js/login/main.js index 41ed6141..4ffa276a 100644 --- a/web/share/js/login/main.js +++ b/web/share/js/login/main.js @@ -59,7 +59,7 @@ function __login() { } else { let error = ""; if (http.status === 400) { - try { error = JSON.parse(http.responseText)["result"]["error"]; } catch (_) { /* Nah */ } + try { error = JSON.parse(http.responseText)["result"]["error"]; } catch { /* Nah */ } } if (error === "ValidatorError") { wm.error("Invalid characters in credentials").then(__tryAgain); diff --git a/web/share/js/wm.js b/web/share/js/wm.js index 31c7dac0..11f65faa 100644 --- a/web/share/js/wm.js +++ b/web/share/js/wm.js @@ -165,7 +165,7 @@ function __WindowManager() { try { err = (document.execCommand("copy") ? null : "Unknown error"); - } catch (err) { // eslint-disable-line no-empty + } catch (err) { // eslint-disable-line no-unused-vars } // Remove the added textarea again: |