From 8587a16935e5314a2e8b518a9b5c9021e583f538 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Tue, 7 Nov 2017 09:18:57 +0100 Subject: [PATCH] Improved scripts for safari --- scripts/AnimeNotifier.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/AnimeNotifier.ts b/scripts/AnimeNotifier.ts index 9ea8c87e..2e899ae9 100644 --- a/scripts/AnimeNotifier.ts +++ b/scripts/AnimeNotifier.ts @@ -273,11 +273,12 @@ export class AnimeNotifier { let enableButton = this.app.find("enable-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) { - enableButton.disabled = true - enableButton.title = "Your browser doesn't support push notifications!" + enableButton.style.display = "none" disableButton.style.display = "none" + testButton.innerHTML = "Your browser doesn't support push notifications!" return }