mirror of
https://github.com/thelounge/thelounge
synced 2024-11-10 14:44:13 +00:00
Make sure we never ship with JS alerts by accident
This commit is contained in:
parent
b8399471b3
commit
64cc4927b3
2 changed files with 2 additions and 1 deletions
|
@ -26,6 +26,7 @@ rules:
|
|||
key-spacing: [2, {beforeColon: false, afterColon: true}]
|
||||
keyword-spacing: [2, {before: true, after: true}]
|
||||
linebreak-style: [2, unix]
|
||||
no-alert: 2
|
||||
no-catch-shadow: 2
|
||||
no-confusing-arrow: 2
|
||||
no-control-regex: 0
|
||||
|
|
|
@ -418,7 +418,7 @@ $(function() {
|
|||
if (chan.hasClass("lobby")) {
|
||||
cmd = "/quit";
|
||||
var server = chan.find(".name").html();
|
||||
if (!confirm("Disconnect from " + server + "?")) {
|
||||
if (!confirm("Disconnect from " + server + "?")) { // eslint-disable-line no-alert
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue