Browse Source

fix mp3 type

main
Lerk 1 month ago
parent
commit
ebce680220
  1. 2
      app/javascript/mastodon/middleware/sounds.js
  2. 4
      config/sounds.yml

2
app/javascript/mastodon/middleware/sounds.js

@ -35,7 +35,7 @@ export default function soundsMiddleware() {
let sound = !notificationSound ?
[{
src: '/sounds/boop.mp3',
type: 'audio/mp3',
type: 'audio/mpeg',
}, {
src: '/sounds/boop.ogg',
type: 'audio/ogg',

4
config/sounds.yml

@ -1,10 +1,10 @@
default:
- src: '/sounds/boop.mp3'
type: 'audio/mp3'
type: 'audio/mpeg'
- src: '/sounds/boop.ogg'
type: 'audio/ogg'
laser:
- src: '/sounds/laser.mp3'
type: 'audio/mp3'
type: 'audio/mpeg'
- src: '/sounds/laser.ogg'
type: 'audio/ogg'

Loading…
Cancel
Save