mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-01-31 19:36:44 +01:00
make js linter happy
This commit is contained in:
parent
4c2c611891
commit
dce3ccb430
1 changed files with 4 additions and 2 deletions
|
@ -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');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue