Page MenuHomePhabricator

D8124.diff
No OneTemporary

D8124.diff

diff --git a/web/database/database-module-provider.js b/web/database/database-module-provider.js
--- a/web/database/database-module-provider.js
+++ b/web/database/database-module-provider.js
@@ -1,7 +1,7 @@
// @flow
import { DATABASE_WORKER_PATH, SQLJS_FILE_PATH } from './utils/constants.js';
-import { isSQLiteSupported } from './utils/db-utils.js';
+import { isDesktopSafari, isSQLiteSupported } from './utils/db-utils.js';
import WorkerConnectionProxy from './utils/WorkerConnectionProxy.js';
import type { AppState } from '../redux/redux-setup.js';
import {
@@ -22,6 +22,8 @@
type DatabaseStatus = $Values<typeof databaseStatuses>;
+const isSafari = isDesktopSafari();
+
class DatabaseModule {
worker: SharedWorker;
workerProxy: WorkerConnectionProxy;
@@ -34,7 +36,7 @@
: preloadedState.currentUserInfo?.id;
const isSupported = isSQLiteSupported(currentLoggedInUserID);
- if (!isSupported) {
+ if (!isSupported || isSafari) {
this.status = databaseStatuses.notSupported;
} else {
this.init();

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 24, 7:17 AM (21 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2574495
Default Alt Text
D8124.diff (1 KB)

Event Timeline