diff options
author | Maxim Devaev <[email protected]> | 2024-08-27 01:49:17 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2024-08-27 01:49:17 +0300 |
commit | 99fcbdda052940f450d397f3c3577be25c0fe52d (patch) | |
tree | bf15a273121ad8ff184ef9b6191e46d652577338 | |
parent | 308911191a839a24272b623160bb1628b8ce1880 (diff) |
lint fix
-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: |