Improved scripts for safari

This commit is contained in:
Eduard Urbach 2017-11-07 09:18:57 +01:00
parent 6c3babc934
commit 8587a16935

View File

@ -273,11 +273,12 @@ export class AnimeNotifier {
let enableButton = this.app.find("enable-notifications") as HTMLButtonElement let enableButton = this.app.find("enable-notifications") as HTMLButtonElement
let disableButton = this.app.find("disable-notifications") as HTMLButtonElement let disableButton = this.app.find("disable-notifications") as HTMLButtonElement
let testButton = this.app.find("test-notification") as HTMLButtonElement
if(!this.pushManager.pushSupported) { if(!this.pushManager.pushSupported) {
enableButton.disabled = true enableButton.style.display = "none"
enableButton.title = "Your browser doesn't support push notifications!"
disableButton.style.display = "none" disableButton.style.display = "none"
testButton.innerHTML = "Your browser doesn't support push notifications!"
return return
} }