We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7d1004 commit 0261411Copy full SHA for 0261411
src/LeanplumInternal.ts
@@ -89,11 +89,14 @@ export default class LeanplumInternal {
89
90
this._events.on('webPushSubscribed',
91
() => {
92
+ const serviceWorkerPath = this._webPushOptions?.serviceWorkerUrl
93
+ const path = serviceWorkerPath ? { serviceWorkerPath } : {}
94
this._ct && this._ct.notifications.push({
95
titleText: '',
96
bodyText: '',
97
okButtonText: '',
98
rejectButtonText: '',
99
+ ...path,
100
})
101
102
}
0 commit comments