Improved notifications view

This commit is contained in:
2018-02-28 23:26:06 +01:00
parent fceec3f193
commit 25c70eba0d
6 changed files with 38 additions and 11 deletions

View File

@ -13,8 +13,11 @@ export async function disableNotifications(arn: AnimeNotifier, button: HTMLEleme
}
// Test notification
export function testNotification(arn: AnimeNotifier) {
fetch("/api/test/notification", {
export async function testNotification(arn: AnimeNotifier) {
await fetch("/api/test/notification", {
credentials: "same-origin"
})
// Update notification counter
arn.notificationManager.update()
}