Appease the linter
This commit is contained in:
parent
5855930221
commit
99ad1781a5
6 changed files with 12 additions and 11 deletions
|
@ -15,5 +15,5 @@ limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export default function workerFactory(options) {
|
export default function workerFactory(options) {
|
||||||
return jest.fn;
|
return jest.fn;
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,8 +21,8 @@ limitations under the License.
|
||||||
import mxRecorderWorkletPath from "./RecorderWorklet";
|
import mxRecorderWorkletPath from "./RecorderWorklet";
|
||||||
|
|
||||||
export default function recorderWorkletFactory(context: AudioContext): Promise<void> {
|
export default function recorderWorkletFactory(context: AudioContext): Promise<void> {
|
||||||
// The context.audioWorklet.addModule syntax is required for Webpack 5 to correctly recognise
|
// 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
|
// 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.
|
// configuration described in https://github.com/webpack/webpack.js.org/issues/6869.
|
||||||
return context.audioWorklet.addModule(new URL("./RecorderWorklet.ts", import.meta.url));
|
return context.audioWorklet.addModule(new URL("./RecorderWorklet.ts", import.meta.url));
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,6 +23,7 @@ import {
|
||||||
IndexedDBStore,
|
IndexedDBStore,
|
||||||
LocalStorageCryptoStore,
|
LocalStorageCryptoStore,
|
||||||
} from "matrix-js-sdk/src/matrix";
|
} from "matrix-js-sdk/src/matrix";
|
||||||
|
|
||||||
import indexeddbWorkerFactory from "../workers/indexeddbWorkerFactory";
|
import indexeddbWorkerFactory from "../workers/indexeddbWorkerFactory";
|
||||||
|
|
||||||
const localStorage = window.localStorage;
|
const localStorage = window.localStorage;
|
||||||
|
|
|
@ -15,5 +15,5 @@ limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export default function blurhashWorkerFactory(options?: WorkerOptions | undefined): Worker {
|
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 {
|
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 {
|
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 a new issue