mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 01:00:29 +08:00
lint fix
This commit is contained in:
parent
308911191a
commit
99fcbdda05
@ -59,7 +59,7 @@ function __login() {
|
|||||||
} else {
|
} else {
|
||||||
let error = "";
|
let error = "";
|
||||||
if (http.status === 400) {
|
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") {
|
if (error === "ValidatorError") {
|
||||||
wm.error("Invalid characters in credentials").then(__tryAgain);
|
wm.error("Invalid characters in credentials").then(__tryAgain);
|
||||||
|
|||||||
@ -165,7 +165,7 @@ function __WindowManager() {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
err = (document.execCommand("copy") ? null : "Unknown error");
|
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:
|
// Remove the added textarea again:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user