Javascript linter

This commit is contained in:
Mouse Reeve 2021-08-17 09:28:39 -07:00
parent 3026a86b11
commit 8b5ac6b012

View file

@ -139,6 +139,7 @@ let BookWyrm = new class {
*/
toggleAction(event) {
let trigger = event.currentTarget;
if (!trigger.dataset.allowDefault || event.currentTarget == event.target) {
event.preventDefault();
}