Page MenuHomePhorge

D9397.1765211132.diff
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

D9397.1765211132.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
@@ -20,6 +20,7 @@
type WorkerResponseMessage,
} from '../types/worker-types.js';
+declare var baseURL: string;
declare var commQueryExecutorFilename: string;
const databaseStatuses = Object.freeze({
notRunning: 'NOT_RUNNING',
@@ -87,7 +88,7 @@
invariant(this.workerProxy, 'Worker proxy should exist');
await this.workerProxy.scheduleOnWorker({
type: workerRequestMessageTypes.INIT,
- databaseModuleFilePath: `${origin}${DATABASE_MODULE_FILE_PATH}`,
+ databaseModuleFilePath: `${origin}${baseURL}${DATABASE_MODULE_FILE_PATH}`,
encryptionKey,
commQueryExecutorFilename,
});
diff --git a/web/database/utils/constants.js b/web/database/utils/constants.js
--- a/web/database/utils/constants.js
+++ b/web/database/utils/constants.js
@@ -7,7 +7,7 @@
export const CURRENT_USER_ID_KEY = 'current_user_id';
-export const DATABASE_WORKER_PATH = '/worker/database';
+export const DATABASE_WORKER_PATH = 'worker/database';
export const DATABASE_MODULE_FILE_PATH = '/compiled/webworkers';
export const DEFAULT_COMM_QUERY_EXECUTOR_FILENAME = 'comm_query_executor.wasm';
diff --git a/web/push-notif/push-notifs-handler.js b/web/push-notif/push-notifs-handler.js
--- a/web/push-notif/push-notifs-handler.js
+++ b/web/push-notif/push-notifs-handler.js
@@ -111,7 +111,7 @@
return;
}
- await navigator.serviceWorker.register('/worker/notif', { scope: '/' });
+ await navigator.serviceWorker.register('worker/notif', { scope: '/' });
if (Notification.permission === 'granted') {
// Make sure the subscription is current if we have the permissions

File Metadata

Mime Type
text/plain
Expires
Mon, Dec 8, 4:25 PM (6 h, 32 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5848393
Default Alt Text
D9397.1765211132.diff (1 KB)

Event Timeline