mirror of
https://github.com/multipleof4/ntfy.git
synced 2026-10-08 21:05:21 +00:00
Merge pull request #1772 from mitya12342/http-sound-playback
Play notification sounds from the page ignoring Notification API support
This commit is contained in:
@@ -11,12 +11,12 @@ class Notifier {
|
|||||||
lastSoundPlayedAt = 0;
|
lastSoundPlayedAt = 0;
|
||||||
|
|
||||||
async notify(subscription, notification) {
|
async notify(subscription, notification) {
|
||||||
|
await this.playSound();
|
||||||
|
|
||||||
if (!this.supported()) {
|
if (!this.supported()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
await this.playSound();
|
|
||||||
|
|
||||||
const shortUrl = topicShortUrl(subscription.baseUrl, subscription.topic);
|
const shortUrl = topicShortUrl(subscription.baseUrl, subscription.topic);
|
||||||
const defaultTitle = topicDisplayName(subscription);
|
const defaultTitle = topicDisplayName(subscription);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user