···44//
55// This worker is responsible for everything non-UI.
6677-import { } from "../index.d"
77+import type { } from "../index.d"
8899// @ts-ignore
1010import * as TaskPort from "elm-taskport"
+5-5
src/Javascript/index.ts
···44// The bit where we launch the Elm app,
55// and connect the other bits to it.
6677-import { } from "./index.d"
88-97import "tocca"
108119import type { Program as OddProgram } from "@oddjs/odd"
1010+import type { } from "./index.d"
12111312import { debounce } from "throttle-debounce"
1414-import { saveAs } from "file-saver"
1515-import JSZip from "jszip"
16131714import * as audioEngine from "./audio-engine"
1815import { db, fileExtension, ODD_CONFIG } from "./common"
···597594// Downloading
598595// -----------
599596600600-function downloadTracks(group) {
597597+async function downloadTracks(group) {
598598+ const { saveAs } = await import("file-saver").then(a => a.default)
599599+ const JSZip = await import("jszip").then(a => a.default)
600600+601601 const zip = new JSZip()
602602 const folder = zip.folder("Diffuse - " + group.name)
603603 if (!folder) throw new Error("Failed to create ZIP file")