mirror of https://github.com/vector-im/riot-web
Appease the linter
parent
5855930221
commit
99ad1781a5
|
@ -15,5 +15,5 @@ limitations under the License.
|
|||
*/
|
||||
|
||||
export default function workerFactory(options) {
|
||||
return jest.fn;
|
||||
return jest.fn;
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
|
|
@ -23,6 +23,7 @@ import {
|
|||
IndexedDBStore,
|
||||
LocalStorageCryptoStore,
|
||||
} from "matrix-js-sdk/src/matrix";
|
||||
|
||||
import indexeddbWorkerFactory from "../workers/indexeddbWorkerFactory";
|
||||
|
||||
const localStorage = window.localStorage;
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue