linting fixes

This commit is contained in:
Hugh Rundle 2021-10-05 21:48:59 +11:00
parent f8e0de1ea9
commit ec7d0db843
7 changed files with 24 additions and 22 deletions

View file

@ -134,8 +134,10 @@ let BookWyrm = new class {
let trigger = event.currentTarget;
let hidden = trigger.closest('.hidden-form').querySelectorAll('.is-hidden')[0];
// if the form has already been revealed, there is no '.is-hidden' element
// so this doesn't really work as a toggle
/**
* if the form has already been revealed, there is no '.is-hidden' element
* so this doesn't really work as a toggle
*/
if (hidden) {
this.addRemoveClass(hidden, 'is-hidden', !hidden);