mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-19 06:36:35 +00:00
Javascript linter
This commit is contained in:
parent
3026a86b11
commit
8b5ac6b012
1 changed files with 1 additions and 0 deletions
|
@ -139,6 +139,7 @@ let BookWyrm = new class {
|
||||||
*/
|
*/
|
||||||
toggleAction(event) {
|
toggleAction(event) {
|
||||||
let trigger = event.currentTarget;
|
let trigger = event.currentTarget;
|
||||||
|
|
||||||
if (!trigger.dataset.allowDefault || event.currentTarget == event.target) {
|
if (!trigger.dataset.allowDefault || event.currentTarget == event.target) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue