fix(sound): correct element nesting

This commit is contained in:
SabreCat 2018-03-28 20:47:31 +00:00
parent 552cf70abd
commit 3b3fcbdfce

View file

@ -42,9 +42,9 @@ div
div(:class='{sticky: user.preferences.stickyHeader}')
router-view
app-footer
audio#sound(autoplay, ref="sound")
source#oggSource(type="audio/ogg", :src="sound.oggSource")
source#mp3Source(type="audio/mp3", :src="sound.mp3Source")
audio#sound(autoplay, ref="sound")
source#oggSource(type="audio/ogg", :src="sound.oggSource")
source#mp3Source(type="audio/mp3", :src="sound.mp3Source")
</template>
<style lang='scss' scoped>
@ -250,8 +250,9 @@ export default {
this.$root.$on('playSound', (sound) => {
let theme = this.user.preferences.sound;
if (!theme || theme === 'off')
if (!theme || theme === 'off') {
return;
}
let file = `/static/audio/${theme}/${sound}`;
this.sound = {