From b65466bc4f28e369d94c34d0e2e029bf9784e3aa Mon Sep 17 00:00:00 2001 From: David Baker Date: Fri, 7 Apr 2017 14:41:41 +0100 Subject: [PATCH] Use dedicated indexeddb worker import --- src/vector/indexedbd-worker.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/vector/indexedbd-worker.js b/src/vector/indexedbd-worker.js index 1e5c3206..2e94509a 100644 --- a/src/vector/indexedbd-worker.js +++ b/src/vector/indexedbd-worker.js @@ -14,12 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// The prescribed way of doing this import would be: -//import {IndexedDbStoreWorker} from 'matrix-js-sdk'; -// However, this still pulls in all of the js-sdk and we only use a tiny fraction -// of it. It also causes an Olm error to appear because we don't have an Olm in scope. -// Instead, we do this: -import IndexedDBStoreWorker from 'matrix-js-sdk/lib/store/indexeddb-store-worker'; +import {IndexedDBStoreWorker} from 'matrix-js-sdk/lib/indexeddb-worker.js'; const remoteWorker = new IndexedDBStoreWorker(postMessage);