make sounds great again

This commit is contained in:
syuilo 2018-03-04 18:50:30 +09:00
parent bad780ce96
commit 9cff3868de
6 changed files with 30 additions and 0 deletions

View file

@ -18,6 +18,7 @@
<script lang="ts">
import Vue from 'vue';
import { url } from '../../../config';
export default Vue.extend({
data() {
@ -93,6 +94,11 @@ export default Vue.extend({
});
},
onPost(post) {
//
if ((this as any).os.isEnableSounds) {
new Audio(`${url}/assets/post.mp3`).play();
}
this.posts.unshift(post);
},
onChangeFollowing() {