From 12105614487715d4c7956b03a3e3c26535b3466c Mon Sep 17 00:00:00 2001 From: "Fedor A. Fetisov" Date: Fri, 27 Aug 2021 02:29:37 +0300 Subject: [PATCH] Implement prototype for invitation sound playback --- src/mibew/js/source/widget.js | 6 ++++++ src/mibew/sounds/invite.mp3 | Bin 0 -> 10448 bytes src/mibew/sounds/invite.wav | Bin 0 -> 12698 bytes 3 files changed, 6 insertions(+) create mode 100644 src/mibew/sounds/invite.mp3 create mode 100644 src/mibew/sounds/invite.wav diff --git a/src/mibew/js/source/widget.js b/src/mibew/js/source/widget.js index 89e8d2b3..3234cca9 100644 --- a/src/mibew/js/source/widget.js +++ b/src/mibew/js/source/widget.js @@ -357,6 +357,12 @@ var Mibew = Mibew || {}; + ''; } + // 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 += '