mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-08-05 21:53:27 +08:00
add webpush switch
This commit is contained in:
@@ -107,7 +107,11 @@ async function subscribeForPushNotifications() {
|
||||
}
|
||||
})
|
||||
// 发送订阅请求
|
||||
await api.post('/message/subscribe', subscription)
|
||||
try {
|
||||
await api.post('/message/webpush/subscribe', subscription)
|
||||
} catch (e) {
|
||||
console.log(e)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user