Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3352890
D8124.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D8124.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D8124: [web-db] avoid database init on app start on Safari
Attached
Detach File
Event Timeline
Log In to Comment