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