diff --git a/app.vue b/app.vue index f736871..4975ecb 100644 --- a/app.vue +++ b/app.vue @@ -5,7 +5,7 @@ spellcheck="false" class="search" type="text" placeholder="Type to filter entries...">
- +

Qopy

@@ -33,7 +33,7 @@ @click="selectItem(groupIndex, index)" :ref="el => { if (isSelected(groupIndex, index)) selectedElement = el as HTMLElement }"> Image - Favicon + Favicon Image ({{ item.dimensions || 'Loading...' }}) {{ truncateContent(item.content) }} @@ -225,13 +225,8 @@ const truncateContent = (content: string): string => { return content.length > maxChars ? content.slice(0, maxChars - 3) + '...' : content; }; -const isUrl = (str: string): boolean => { - try { - new URL(str); - return true; - } catch { - return false; - } +const hasFavicon = (str: string): boolean => { + return str.trim() !== ''; }; const isYoutubeWatchUrl = (url: string): boolean => {