Implement prototype for invitation sound playback

This commit is contained in:
Fedor A. Fetisov 2021-08-27 02:29:37 +03:00
parent 9294697d58
commit 1210561448
3 changed files with 6 additions and 0 deletions

View File

@ -357,6 +357,12 @@ var Mibew = Mibew || {};
+ '</h1>';
}
// Play sound
var sound = document.getElementById('mibew-notification-sound');
if (sound) {
sound.play();
}
// Broadcast message from the thread related with invitation into iframe
if (threadUrl) {
popuptext += '<iframe id="mibew-invitation-frame" '

BIN
src/mibew/sounds/invite.mp3 Normal file

Binary file not shown.

BIN
src/mibew/sounds/invite.wav Normal file

Binary file not shown.