Appease the linter

This commit is contained in:
Johannes Marbach 2023-11-13 19:54:04 +01:00
parent 5855930221
commit 99ad1781a5
6 changed files with 12 additions and 11 deletions

View file

@ -15,5 +15,5 @@ limitations under the License.
*/
export default function workerFactory(options) {
return jest.fn;
return jest.fn;
}

View file

@ -21,8 +21,8 @@ limitations under the License.
import mxRecorderWorkletPath from "./RecorderWorklet";
export default function recorderWorkletFactory(context: AudioContext): Promise<void> {
// The context.audioWorklet.addModule syntax is required for Webpack 5 to correctly recognise
// this as a worklet rather than an asset. This also requires the parser.javascript.worker
// configuration described in https://github.com/webpack/webpack.js.org/issues/6869.
return context.audioWorklet.addModule(new URL("./RecorderWorklet.ts", import.meta.url));
// The context.audioWorklet.addModule syntax is required for Webpack 5 to correctly recognise
// this as a worklet rather than an asset. This also requires the parser.javascript.worker
// configuration described in https://github.com/webpack/webpack.js.org/issues/6869.
return context.audioWorklet.addModule(new URL("./RecorderWorklet.ts", import.meta.url));
}

View file

@ -23,6 +23,7 @@ import {
IndexedDBStore,
LocalStorageCryptoStore,
} from "matrix-js-sdk/src/matrix";
import indexeddbWorkerFactory from "../workers/indexeddbWorkerFactory";
const localStorage = window.localStorage;

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("./workers/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("../workers/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("../workers/playback.worker.ts", import.meta.url), options);
}