web: very early implementation of a fetch worker
This commit is contained in:
@@ -5,6 +5,7 @@ import { t } from "$lib/i18n/translations";
|
||||
import { downloadFile } from "$lib/download";
|
||||
import { createDialog } from "$lib/state/dialogs";
|
||||
import { downloadButtonState } from "$lib/state/omnibox";
|
||||
import { createSavePipeline } from "$lib/queen-bee/queue";
|
||||
|
||||
import type { DialogInfo } from "$lib/types/dialog";
|
||||
|
||||
@@ -79,8 +80,11 @@ export const savingHandler = async (link: string) => {
|
||||
}
|
||||
|
||||
if (response.status === "local-processing") {
|
||||
// TODO: actual implementation
|
||||
// TODO: remove debug logging
|
||||
console.log(response);
|
||||
|
||||
downloadButtonState.set("done");
|
||||
return createSavePipeline(response);
|
||||
}
|
||||
|
||||
if (response.status === "picker") {
|
||||
|
||||
Reference in New Issue
Block a user