fix broken discord notifications after restart

This commit is contained in:
Malte Jürgens 2022-07-27 15:02:51 +02:00
parent 58ecbbc6f4
commit fa83e2d9a8
No known key found for this signature in database
GPG key ID: D29FBD5F93C0CFC3

View file

@ -129,3 +129,7 @@ setInterval(() => {
document.getElementById("manage-streams-change-windows")?.remove(); document.getElementById("manage-streams-change-windows")?.remove();
document.querySelector(`[aria-label="Stream Settings"]`)?.remove(); document.querySelector(`[aria-label="Stream Settings"]`)?.remove();
}, 500); }, 500);
// Fix for broken discord notifications after restart
// (https://github.com/maltejur/discord-screenaudio/issues/17)
Notification.requestPermission();