Appease the linter

t3chguy/dedup-icons-17oct
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);
}