Restore audio functionality. Begone, ribbit!

This commit is contained in:
Alex Gleason 2020-04-10 19:54:33 -05:00
parent a47781fb95
commit af717ce3b8
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7
4 changed files with 2 additions and 12 deletions

View file

@ -104,7 +104,7 @@ export function updateNotificationsQueue(notification, intlMessages, intlLocale,
if (playSound && !filtered) {
dispatch({
type: NOTIFICATIONS_UPDATE_NOOP,
meta: { sound: 'ribbit' },
meta: { sound: 'boop' },
});
}

View file

@ -21,7 +21,7 @@ const play = audio => {
}
}
// audio.play();
audio.play();
};
export default function soundsMiddleware() {
@ -36,16 +36,6 @@ export default function soundsMiddleware() {
type: 'audio/mpeg',
},
]),
ribbit: createAudio([
{
src: '/sounds/ribbit.ogg',
type: 'audio/ogg',
},
{
src: '/sounds/ribbit.mp3',
type: 'audio/mpeg',
},
]),
};
return () => next => action => {

BIN
public/sounds/boop.mp3 Normal file

Binary file not shown.

BIN
public/sounds/boop.ogg Normal file

Binary file not shown.