make js linter happy

This commit is contained in:
Luna D 2022-03-24 19:07:51 +01:00
parent 4c2c611891
commit dce3ccb430
No known key found for this signature in database
GPG key ID: 4B1C63448394F688

View file

@ -16,10 +16,12 @@ function warnAboutPMs() {
textarea.addEventListener('input', () => {
const value = textarea.value;
if (value.match(imageEmbedRegex))
if (value.match(imageEmbedRegex)) {
warning.classList.remove('hidden');
else if (!warning.classList.contains('hidden'))
}
else if (!warning.classList.contains('hidden')) {
warning.classList.add('hidden');
}
});
}