@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.
@@ -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.apiKey ||
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.apiKey,
206
+ 'x-api-key': config.appId,
207
207
  'x-session-token': config.sessionToken,
208
208
  },
209
209
  body,