@@ -33,7 +33,7 @@
@click="selectItem(groupIndex, index)"
:ref="el => { if (isSelected(groupIndex, index)) selectedElement = el as HTMLElement }">
![Image]()
-
![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 => {