You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-12-23 21:02:09 +03:00
Fix paths and extensions
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user