From fa83e2d9a84c5a4c9c8adae11eff2fd7beb3c2af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Malte=20J=C3=BCrgens?= Date: Wed, 27 Jul 2022 15:02:51 +0200 Subject: [PATCH] fix broken discord notifications after restart --- assets/userscript.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/assets/userscript.js b/assets/userscript.js index d52d4fa..896b2f0 100644 --- a/assets/userscript.js +++ b/assets/userscript.js @@ -129,3 +129,7 @@ setInterval(() => { document.getElementById("manage-streams-change-windows")?.remove(); document.querySelector(`[aria-label="Stream Settings"]`)?.remove(); }, 500); + +// Fix for broken discord notifications after restart +// (https://github.com/maltejur/discord-screenaudio/issues/17) +Notification.requestPermission();