1
0
Fork 0
mirror of https://github.com/paricafe/misskey.git synced 2025-04-21 17:53:08 -05:00

fix noteClickToOpen

This commit is contained in:
FLY_MC 2025-03-31 21:28:24 +08:00
parent 80a95bfd4e
commit 97df064b82

View file

@ -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}`);
}