A self-hosted media server and file management system
Vue ffmpegfile-serverjellyfinlaravelmediamedia-playermedia-servermediabrowsermediaservermusicmusic-librarymusic-playermusicplayerself-hostedvuejs
chore: code smells
aminnausin8b6a71f71087
diff --git a/resources/js/components/video/VideoLyricItem.vue b/resources/js/components/video/VideoLyricItem.vueindex 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');