show me the error
This commit is contained in:
parent
ec928cf631
commit
472098f9f1
@ -105,7 +105,10 @@
|
||||
fetch('/vapid-public-key')
|
||||
.then(response => {
|
||||
if (!response.ok) {
|
||||
throw new Error('Failed to fetch VAPID public key');
|
||||
return response.text().then(text => {
|
||||
console.error('Failed to fetch VAPID public key. Server response:', text);
|
||||
throw new Error('Failed to fetch VAPID public key. See server response in logs.');
|
||||
});
|
||||
}
|
||||
return response.json();
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user