Improved scripts for safari
This commit is contained in:
parent
6c3babc934
commit
8587a16935
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user