Page MenuHomePhabricator

D6990.id23831.diff
No OneTemporary

D6990.id23831.diff

diff --git a/web/database/worker/db-worker.js b/web/database/worker/db-worker.js
--- a/web/database/worker/db-worker.js
+++ b/web/database/worker/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) {
if (!event.ports.length) {
return;

File Metadata

Mime Type
text/plain
Expires
Thu, Dec 26, 9:52 AM (10 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2705253
Default Alt Text
D6990.id23831.diff (654 B)

Event Timeline