Page MenuHomePhabricator

D6990.id23508.diff
No OneTemporary

D6990.id23508.diff

diff --git a/web/database/worker/web-db-worker.js b/web/database/worker/web-db-worker.js
--- a/web/database/worker/web-db-worker.js
+++ b/web/database/worker/web-db-worker.js
@@ -1,7 +1,18 @@
// @flow
+import localforage from 'localforage';
+
import { type SharedWorkerMessageEvent } from '../../types/worker-types.js';
+const localforageConfig: PartialConfig = {
+ driver: localforage.INDEXEDDB,
+ name: 'comm',
+ storeName: 'commStorage',
+ description: 'Comm encrypted database storage',
+ version: '1.0',
+};
+localforage.config(localforageConfig);
+
function connectHandler(event: SharedWorkerMessageEvent) {
const port: MessagePort = event.ports[0];
console.log('Web database worker alive!');

File Metadata

Mime Type
text/plain
Expires
Thu, Dec 26, 11:18 AM (11 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2705586
Default Alt Text
D6990.id23508.diff (718 B)

Event Timeline