@webitel/ui-sdk 24.10.8 → 24.10.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -114,10 +114,13 @@ export default class NotificationsStoreModule extends BaseStoreModule {
|
|
|
114
114
|
context.dispatch('_REMOVE_CURRENT_TAB_ID'),
|
|
115
115
|
]),
|
|
116
116
|
|
|
117
|
-
PLAY_SOUND: (context, { action, sound = getNotificationSound(action) }) => {
|
|
117
|
+
PLAY_SOUND: (context, { action, sound = getNotificationSound(action), volume = 1.0 }) => {
|
|
118
118
|
if (context.getters.IS_SOUND_ALLOWED && !localStorage.getItem('wtIsPlaying')) {
|
|
119
119
|
const audio = sound instanceof Audio ? sound : new Audio(sound);
|
|
120
120
|
|
|
121
|
+
// Set the volume of the audio
|
|
122
|
+
audio.volume = volume;
|
|
123
|
+
|
|
121
124
|
audio.addEventListener(
|
|
122
125
|
'ended',
|
|
123
126
|
() => {
|