Improved notifications

This commit is contained in:
2019-11-20 16:47:00 +09:00
parent 4ad52042ba
commit 2d139e6381
4 changed files with 17 additions and 10 deletions

View File

@ -306,14 +306,16 @@ export default class AnimeNotifier {
return
}
const enableButton = document.getElementById("enable-notifications") as HTMLButtonElement
const disableButton = document.getElementById("disable-notifications") as HTMLButtonElement
const testButton = document.getElementById("test-notification") as HTMLButtonElement
const enableButton = document.getElementById("notifications-enable") as HTMLButtonElement
const disableButton = document.getElementById("notifications-disable") as HTMLButtonElement
const testButton = document.getElementById("notifications-test") as HTMLButtonElement
const footer = document.getElementById("notifications-footer") as HTMLElement
if(!this.pushManager.pushSupported) {
enableButton.classList.add("hidden")
disableButton.classList.add("hidden")
testButton.innerHTML = "Your browser doesn't support push notifications!"
testButton.classList.add("hidden")
footer.innerHTML = "Your browser doesn't support push notifications!"
return
}