kin: BATON-BIZ-002-frontend_dev
This commit is contained in:
parent
40e1a9fa48
commit
86a41a3b35
1 changed files with 2 additions and 2 deletions
|
|
@ -247,9 +247,9 @@ function _registerSW() {
|
||||||
|
|
||||||
async function _fetchVapidPublicKey() {
|
async function _fetchVapidPublicKey() {
|
||||||
try {
|
try {
|
||||||
const res = await fetch('/api/vapid-public-key');
|
const res = await fetch('/api/push/public-key');
|
||||||
if (!res.ok) {
|
if (!res.ok) {
|
||||||
console.warn('[baton] /api/vapid-public-key returned', res.status);
|
console.warn('[baton] /api/push/public-key returned', res.status);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
const data = await res.json();
|
const data = await res.json();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue