Bug fixes

This commit is contained in:
Juan Gilsanz Polo
2024-02-29 21:59:57 +01:00
parent 67a9922275
commit 8537f38fac
2 changed files with 13 additions and 3 deletions

View File

@@ -58,7 +58,17 @@ class FaviconStore extends _$FaviconStore {
final notExist = bookmarks.map((b) => b.url!).where((b) => !mappedSaved.contains(b)).toList();
final favicons = await compute(
(message) => Future.wait(message.map((e) => FaviconFinder.getBest(e))),
(message) => Future.wait(
message.map(
(e) {
try {
return FaviconFinder.getBest(e);
} catch (_) {
return Future.delayed(Duration.zero);
}
},
),
),
notExist,
);