Skip to content

Commit 2596a1d

Browse files
committed
Comptibility with edge
1 parent ce45557 commit 2596a1d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/app.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -212,10 +212,7 @@ document.addEventListener("DOMContentLoaded", () => {
212212
const jsonSubscription = subscription.toJSON();
213213
fetch('send_push_notification.php', {
214214
method: 'POST',
215-
body: JSON.stringify({
216-
...jsonSubscription,
217-
contentEncoding,
218-
})
215+
body: JSON.stringify(Object.assign(jsonSubscription, { contentEncoding })),
219216
})
220217
})
221218
);

0 commit comments

Comments
 (0)