chore: check format when committing

This commit is contained in:
三咲智子 2022-11-29 04:21:32 +08:00
parent 569655095d
commit 6e466dc82d
No known key found for this signature in database
GPG key ID: 69992F2250DFD93E
3 changed files with 243 additions and 3 deletions

View file

@ -25,7 +25,7 @@ function onclick(evt: MouseEvent | KeyboardEvent) {
const path = evt.composedPath() as HTMLElement[]
const el = path.find(el => ['A', 'BUTTON', 'IMG', 'VIDEO'].includes(el.tagName?.toUpperCase()))
const text = window.getSelection()?.toString()
if (!el && !text)
if (!el && !text)
go(evt)
}