fix lint no-undef

This commit is contained in:
Johann150
2022-07-04 16:33:55 +02:00
parent 2bd4323b17
commit a5c3fcea6e
6 changed files with 5 additions and 3 deletions

View File

@ -53,7 +53,7 @@ function onContextmenu(ev: MouseEvent) {
if (isLink(ev.target as HTMLElement)) return;
if (['INPUT', 'TEXTAREA', 'IMG', 'VIDEO', 'CANVAS'].includes((ev.target as HTMLElement).tagName) || (ev.target as HTMLElement).attributes['contenteditable']) return;
if (window.getSelection()?.toString() !== '') return;
const path = router.currentRoute.value.path;
const path = mainRouter.currentRoute.value.path;
os.contextMenu([{
type: 'label',
text: path,