Skip to content

A self-hosted media server and file management system

chore: code smells

aminnausin0686a1795dbb
diff --git a/resources/js/components/video/VideoLyricItem.vue b/resources/js/components/video/VideoLyricItem.vue
index ba09974f..509ecb89 100644
--- a/resources/js/components/video/VideoLyricItem.vue
+++ b/resources/js/components/video/VideoLyricItem.vue
@@ -1,9 +1,7 @@
<script setup lang="ts">
import type { RawLyricItem } from '@/types/types';
-const emit = defineEmits<{
- (e: 'clicked'): void;
-}>();
+const emit = defineEmits<(e: 'clicked') => void>();
withDefaults(
defineProps<{
@@ -18,7 +16,7 @@ withDefaults(
);
function onClick() {
- const selection = window.getSelection();
+ const selection = globalThis.getSelection();
if (selection && selection.toString().length > 0) return;
emit('clicked');