Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3365763
D10047.id33697.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
941 B
Referenced Files
None
Subscribers
None
D10047.id33697.diff
View Options
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
@@ -28,6 +28,7 @@
import { useStaffCanSee } from '../utils/staff-utils.js';
declare var baseURL: string;
+declare var olmFilename: string;
function useCreateDesktopPushSubscription() {
const dispatchActionPromise = useDispatchActionPromise();
@@ -85,7 +86,8 @@
const origin = window.location.origin;
const olmWasmDirPath = `${origin}${baseURL}${WORKERS_MODULES_DIR_PATH}`;
- const olmWasmPath = `${olmWasmDirPath}/${DEFAULT_OLM_FILENAME}`;
+ const olmWasmFilename = olmFilename ? olmFilename : DEFAULT_OLM_FILENAME;
+ const olmWasmPath = `${olmWasmDirPath}/${olmWasmFilename}`;
workerRegistration.active?.postMessage({ olmWasmPath, staffCanSee });
const subscription = await workerRegistration.pushManager.subscribe({
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 26, 7:37 AM (22 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2583900
Default Alt Text
D10047.id33697.diff (941 B)
Attached To
Mode
D10047: Use olm WASM with content hash on web in production
Attached
Detach File
Event Timeline
Log In to Comment