@log-drop/web 1.0.0-alpha2 → 1.0.0-alpha4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -3
- package/dist/index.cjs +334 -23
- package/dist/index.cjs.map +3 -3
- package/dist/index.d.ts +0 -1
- package/dist/index.js +334 -23
- package/dist/index.js.map +3 -3
- package/dist/logdrop-sw.js +2 -2
- package/dist/logdrop.min.js +2 -2
- package/dist/logdrop.min.js.map +4 -4
- package/package.json +1 -1
package/dist/logdrop-sw.js
CHANGED
|
@@ -184,7 +184,7 @@ async function handleSubscriptionChange(event) {
|
|
|
184
184
|
config = await getStoredPushConfig();
|
|
185
185
|
} catch { /* ignore */ }
|
|
186
186
|
|
|
187
|
-
if (!config || !config.vapidPublicKey || !config.apiBase || !config.
|
|
187
|
+
if (!config || !config.vapidPublicKey || !config.apiBase || !config.appId ||
|
|
188
188
|
!config.sessionToken || !config.deviceUuid) {
|
|
189
189
|
// Cannot re-subscribe without config — the next page load will handle it
|
|
190
190
|
return;
|
|
@@ -203,7 +203,7 @@ async function handleSubscriptionChange(event) {
|
|
|
203
203
|
headers: {
|
|
204
204
|
'Content-Type': 'application/x-protobuf',
|
|
205
205
|
'Accept': 'application/x-protobuf',
|
|
206
|
-
'x-api-key': config.
|
|
206
|
+
'x-api-key': config.appId,
|
|
207
207
|
'x-session-token': config.sessionToken,
|
|
208
208
|
},
|
|
209
209
|
body,
|