Skip to content

Commit

Permalink
fix: ??????
Browse files Browse the repository at this point in the history
  • Loading branch information
not-nullptr committed Nov 15, 2024
1 parent d3c6a16 commit 76f7a09
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/lib/converters/vips.svelte.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
import { VertFile } from "$lib/types";
import { Converter } from "./converter.svelte";
import VipsWorker from "$lib/workers/vips?worker";
import VipsWorker from "$lib/workers/vips?url";
import { browser } from "$app/environment";
import type { WorkerMessage, OmitBetterStrict } from "$lib/types";
import { log } from "$lib/logger";

export class VipsConverter extends Converter {
private worker: Worker = browser ? new VipsWorker() : null!;
private worker: Worker = browser
? new Worker(VipsWorker, {
type: "module",
})
: null!;
private id = 0;
public name = "libvips";
public ready = $state(false);
Expand Down

0 comments on commit 76f7a09

Please sign in to comment.