mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Guard against duplicate filters
This protects against adding multiple filters of the same thing
This commit is contained in:
parent
f3e41861d2
commit
cb6e034f30
@ -143,6 +143,8 @@
|
||||
return;
|
||||
}
|
||||
|
||||
if (words.includes(safe_word)) return;
|
||||
|
||||
// Display filtered word
|
||||
words.push(word);
|
||||
$("#ignored-words").append(
|
||||
|
Loading…
Reference in New Issue
Block a user