Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3533216
D6990.id23508.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
718 B
Referenced Files
None
Subscribers
None
D6990.id23508.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D6990: [web-db] add indexedDB config
Attached
Detach File
Event Timeline
Log In to Comment