Fix paths and extensions

This commit is contained in:
Johannes Marbach 2023-11-13 20:10:55 +01:00
parent 253ff78c00
commit 624be1a7fa
5 changed files with 5 additions and 5 deletions

View file

@ -17,7 +17,7 @@ limitations under the License.
// @ts-ignore - `.ts` is needed here to make TS happy // @ts-ignore - `.ts` is needed here to make TS happy
import { Request, Response } from "./workers/blurhash.worker.ts"; import { Request, Response } from "./workers/blurhash.worker.ts";
import { WorkerManager } from "./WorkerManager"; import { WorkerManager } from "./WorkerManager";
import blurhashWorkerFactory from "./workers/blurhashWorkerFactory.js"; import blurhashWorkerFactory from "./workers/blurhashWorkerFactory";
export class BlurhashEncoder { export class BlurhashEncoder {
private static internalInstance = new BlurhashEncoder(); private static internalInstance = new BlurhashEncoder();

View file

@ -29,7 +29,7 @@ import { createAudioContext, decodeOgg } from "./compat";
import { clamp } from "../utils/numbers"; import { clamp } from "../utils/numbers";
import { WorkerManager } from "../WorkerManager"; import { WorkerManager } from "../WorkerManager";
import { DEFAULT_WAVEFORM, PLAYBACK_WAVEFORM_SAMPLES } from "./consts"; import { DEFAULT_WAVEFORM, PLAYBACK_WAVEFORM_SAMPLES } from "./consts";
import playbackWorkerFactory from "../workers/playbackWorkerFactory.js"; import playbackWorkerFactory from "../workers/playbackWorkerFactory";
export enum PlaybackState { export enum PlaybackState {
Decoding = "decoding", Decoding = "decoding",

View file

@ -15,5 +15,5 @@ limitations under the License.
*/ */
export default function blurhashWorkerFactory(options?: WorkerOptions | undefined): Worker { export default function blurhashWorkerFactory(options?: WorkerOptions | undefined): Worker {
return new Worker(new URL("./workers/blurhash.worker.ts", import.meta.url), options); return new Worker(new URL("./blurhash.worker.ts", import.meta.url), options);
} }

View file

@ -15,5 +15,5 @@ limitations under the License.
*/ */
export default function blurhashWorkerFactory(options?: WorkerOptions | undefined): Worker { export default function blurhashWorkerFactory(options?: WorkerOptions | undefined): Worker {
return new Worker(new URL("../workers/indexeddb.worker.ts", import.meta.url), options); return new Worker(new URL("./indexeddb.worker.ts", import.meta.url), options);
} }

View file

@ -15,5 +15,5 @@ limitations under the License.
*/ */
export default function blurhashWorkerFactory(options?: WorkerOptions | undefined): Worker { export default function blurhashWorkerFactory(options?: WorkerOptions | undefined): Worker {
return new Worker(new URL("../workers/playback.worker.ts", import.meta.url), options); return new Worker(new URL("./playback.worker.ts", import.meta.url), options);
} }