2023-01-03 16:55:26 +00:00
|
|
|
/*
|
2024-09-06 10:22:13 +02:00
|
|
|
Copyright 2022-2024 New Vector Ltd.
|
2023-01-03 16:55:26 +00:00
|
|
|
|
2025-02-18 17:59:58 +00:00
|
|
|
SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
2024-09-06 10:22:13 +02:00
|
|
|
Please see LICENSE in the repository root for full details.
|
2023-01-03 16:55:26 +00:00
|
|
|
*/
|
|
|
|
|
|
2025-03-13 13:58:43 +01:00
|
|
|
import { IndexedDBStoreWorker } from "matrix-js-sdk/lib/indexeddb-worker";
|
2022-07-30 09:50:36 +02:00
|
|
|
|
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
|
|
|
const remoteWorker = new IndexedDBStoreWorker((self as any).postMessage);
|
|
|
|
|
|
|
|
|
|
self.onmessage = remoteWorker.onMessage;
|