Chat UIでサウンドがならない問題を修正

This commit is contained in:
syuilo 2021-02-20 21:06:26 +09:00
parent fbf2d1f2fc
commit 84e3fe4702

View file

@ -61,11 +61,6 @@ export default defineComponent({
type: String,
required: false
},
sound: {
type: Boolean,
required: false,
default: false,
}
},
emits: ['note', 'queue', 'before', 'after'],
@ -95,9 +90,7 @@ export default defineComponent({
this.$emit('note');
if (this.sound) {
sound.play(note.userId === this.$i.id ? 'noteMy' : 'note');
}
sound.play(note.userId === this.$i.id ? 'noteMy' : 'note');
};
const onUserAdded = () => {