diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2022-01-18 21:35:57 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2022-01-18 21:35:57 +0900 |
| commit | a8fad1b61c554b9e42d310a522f3c2c4e8879892 (patch) | |
| tree | adfcbff1ae402f5cce47d47fc320b0a96dfc244d /packages/client/src/components/note.vue | |
| parent | Fix #8151 (#8152) (diff) | |
| download | sharkey-a8fad1b61c554b9e42d310a522f3c2c4e8879892.tar.gz sharkey-a8fad1b61c554b9e42d310a522f3c2c4e8879892.tar.bz2 sharkey-a8fad1b61c554b9e42d310a522f3c2c4e8879892.zip | |
refactor
Diffstat (limited to 'packages/client/src/components/note.vue')
| -rw-r--r-- | packages/client/src/components/note.vue | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/client/src/components/note.vue b/packages/client/src/components/note.vue index b309afe051..fc89c2777b 100644 --- a/packages/client/src/components/note.vue +++ b/packages/client/src/components/note.vue @@ -211,21 +211,21 @@ function undoReact(note): void { }); } -function onContextmenu(e): void { +function onContextmenu(ev: MouseEvent): void { const isLink = (el: HTMLElement) => { if (el.tagName === 'A') return true; if (el.parentElement) { return isLink(el.parentElement); } }; - if (isLink(e.target)) return; + if (isLink(ev.target)) return; if (window.getSelection().toString() !== '') return; if (defaultStore.state.useReactionPickerForContextMenu) { - e.preventDefault(); + ev.preventDefault(); react(); } else { - os.contextMenu(getNoteMenu({ note: props.note, translating, translation, menuButton }), e).then(focus); + os.contextMenu(getNoteMenu({ note: props.note, translating, translation, menuButton }), ev).then(focus); } } |