Play a sound for notification (if enabled)
This commit is contained in:
parent
7027a2cf9b
commit
2c01373143
2 changed files with 4 additions and 0 deletions
|
|
@ -367,6 +367,10 @@ function onNewLine(text, originator) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
if (("notification_sound" in options) && (options["notification_sound"])) {
|
||||||
|
var audio = new Audio("/static/webclient/media/notification.wav");
|
||||||
|
audio.play();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
BIN
evennia/web/webclient/static/webclient/media/notification.wav
Normal file
BIN
evennia/web/webclient/static/webclient/media/notification.wav
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue