Fix paths and extensions

t3chguy/dedup-icons-17oct
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
import { Request, Response } from "./workers/blurhash.worker.ts";
import { WorkerManager } from "./WorkerManager";
import blurhashWorkerFactory from "./workers/blurhashWorkerFactory.js";
import blurhashWorkerFactory from "./workers/blurhashWorkerFactory";
export class BlurhashEncoder {
private static internalInstance = new BlurhashEncoder();

View File

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

View File

@ -15,5 +15,5 @@ limitations under the License.
*/
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 {
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 {
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);
}