Fix fetch URL in push notification subscription to include leading slash #163
@@ -57,7 +57,7 @@
|
|||||||
applicationServerKey: vapidKey
|
applicationServerKey: vapidKey
|
||||||
});
|
});
|
||||||
|
|
||||||
await fetch('api/push/subscribe', {
|
await fetch('/api/push/subscribe', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
|
|||||||
Reference in New Issue
Block a user