Play notification sounds from the page ignoring Notification API support

This commit is contained in:
Dimitriy Goloborodko
2026-06-06 20:06:02 +10:00
committed by GitHub
parent 5ff460f1dc
commit 9cc6124f18
+2 -2
View File
@@ -11,12 +11,12 @@ class Notifier {
lastSoundPlayedAt = 0;
async notify(subscription, notification) {
await this.playSound();
if (!this.supported()) {
return;
}
await this.playSound();
const shortUrl = topicShortUrl(subscription.baseUrl, subscription.topic);
const defaultTitle = topicDisplayName(subscription);