1
0
mirror of https://github.com/XFox111/TabsAsideExtension.git synced 2026-04-22 07:58:01 +03:00

feat: captureVisibleTab fallback for tab previews

This commit is contained in:
2025-05-04 15:22:33 +03:00
parent e59782973b
commit f89d036ab8
7 changed files with 49 additions and 7 deletions
@@ -13,12 +13,12 @@ export default function migrateCollections(legacyCollections: LegacyCollection[]
{
const title: string | undefined = legacyCollection.titles[index];
const icon: string | undefined = legacyCollection.icons?.[index];
const preview: string | undefined = legacyCollection.thumbnails?.[index];
const capture: string | undefined = legacyCollection.thumbnails?.[index];
if (!graphics[url])
graphics[url] = { icon, preview };
graphics[url] = { icon, capture };
else
graphics[url] = { icon: graphics[url].icon ?? icon, preview: graphics[url].preview ?? preview };
graphics[url] = { icon: graphics[url].icon ?? icon, capture: graphics[url].preview ?? capture };
return {
type: "tab",