mirror of
https://github.com/danbulant/Nertivia-Client
synced 2026-06-18 05:51:11 +00:00
22 lines
No EOL
518 B
JavaScript
22 lines
No EOL
518 B
JavaScript
import notificationSound from '@/assets/sounds/Notification.mp3';
|
|
import newFriendSound from '@/assets/sounds/FriendRequest.mp3';
|
|
import {
|
|
store
|
|
} from '@/store/index';
|
|
|
|
export default {
|
|
notification: () => {
|
|
if (isBusy()) return;
|
|
const audio = new Audio(notificationSound);
|
|
audio.play();
|
|
},
|
|
newFriend: () => {
|
|
if (isBusy()) return;
|
|
const audio = new Audio(newFriendSound);
|
|
audio.play();
|
|
}
|
|
}
|
|
|
|
function isBusy(){
|
|
return store.getters.user.status == 3
|
|
} |