Skip to content

Commit b65466b

Browse files
committed
Use dedicated indexeddb worker import
1 parent 515b57b commit b65466b

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

‎src/vector/indexedbd-worker.js‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,7 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
// The prescribed way of doing this import would be:
18-
//import {IndexedDbStoreWorker} from 'matrix-js-sdk';
19-
// However, this still pulls in all of the js-sdk and we only use a tiny fraction
20-
// of it. It also causes an Olm error to appear because we don't have an Olm in scope.
21-
// Instead, we do this:
22-
import IndexedDBStoreWorker from 'matrix-js-sdk/lib/store/indexeddb-store-worker';
17+
import {IndexedDBStoreWorker} from 'matrix-js-sdk/lib/indexeddb-worker.js';
2318

2419
const remoteWorker = new IndexedDBStoreWorker(postMessage);
2520

0 commit comments

Comments
 (0)