background fetch running

This commit is contained in:
Fabian Freund committed 2025-03-05 14:27:13 +01:00
1 parent 20bdc4df3e
commit 70d1c1b50e
62 files changed
+898 -173

No files matched your search

@@ -14,9 +14,16 @@ class GeckoBrowserExtensionService extends BrowserExtensionEvents {
Stream<String> get feedRequested => _feedRequest.stream;
static Future<List<TurndownResults>> turndownHtml(
List<String> htmlList,
) async {
final markdownResult = await _apiInstance.getMarkdown(htmlList);
List<String> htmlList, {
Duration timeout = const Duration(seconds: 1),
}) async {
if (htmlList.isEmpty) {
return [];
}
final markdownResult = await _apiInstance
.getMarkdown(htmlList)
.timeout(timeout);
final results =
markdownResult