Restore audio functionality. Begone, ribbit!
This commit is contained in:
@ -104,7 +104,7 @@ export function updateNotificationsQueue(notification, intlMessages, intlLocale,
|
|||||||
if (playSound && !filtered) {
|
if (playSound && !filtered) {
|
||||||
dispatch({
|
dispatch({
|
||||||
type: NOTIFICATIONS_UPDATE_NOOP,
|
type: NOTIFICATIONS_UPDATE_NOOP,
|
||||||
meta: { sound: 'ribbit' },
|
meta: { sound: 'boop' },
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -21,7 +21,7 @@ const play = audio => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// audio.play();
|
audio.play();
|
||||||
};
|
};
|
||||||
|
|
||||||
export default function soundsMiddleware() {
|
export default function soundsMiddleware() {
|
||||||
@ -36,16 +36,6 @@ export default function soundsMiddleware() {
|
|||||||
type: 'audio/mpeg',
|
type: 'audio/mpeg',
|
||||||
},
|
},
|
||||||
]),
|
]),
|
||||||
ribbit: createAudio([
|
|
||||||
{
|
|
||||||
src: '/sounds/ribbit.ogg',
|
|
||||||
type: 'audio/ogg',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
src: '/sounds/ribbit.mp3',
|
|
||||||
type: 'audio/mpeg',
|
|
||||||
},
|
|
||||||
]),
|
|
||||||
};
|
};
|
||||||
|
|
||||||
return () => next => action => {
|
return () => next => action => {
|
||||||
|
|||||||
BIN
public/sounds/boop.mp3
Normal file
BIN
public/sounds/boop.mp3
Normal file
Binary file not shown.
BIN
public/sounds/boop.ogg
Normal file
BIN
public/sounds/boop.ogg
Normal file
Binary file not shown.
Reference in New Issue
Block a user