mirror of
https://github.com/paricafe/misskey.git
synced 2025-04-21 17:53:08 -05:00
fix noteClickToOpen
This commit is contained in:
parent
80a95bfd4e
commit
97df064b82
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ const props = defineProps<{
|
|||
const router = useRouter();
|
||||
|
||||
function noteClickToOpen(id: string) {
|
||||
const selection = document.getSelection();
|
||||
const selection = window.document.getSelection();
|
||||
if (selection?.toString().length === 0) {
|
||||
router.push(`/notes/${id}`);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue