</head>
<body id="appBody">
<div id="root"></div>
+ <audio id="notificationSound">
+ <source src="./sound/notification.ogg" type="audio/ogg" />
+ </audio>
+ <audio id="inviteSound">
+ <source src="./sound/invite.ogg" type="audio/ogg" />
+ </audio>
</body>
</html>
\ No newline at end of file
import navigation from './navigation';
import settings from './settings';
-import NotificationSound from '../../../public/sound/notification.ogg';
-import InviteSound from '../../../public/sound/invite.ogg';
-
function isNotifEvent(mEvent) {
const eType = mEvent.getType();
if (!cons.supportEventTypes.includes(eType)) return false;
_playNotiSound() {
if (!this._notiAudio) {
- this._notiAudio = new Audio(NotificationSound);
+ this._notiAudio = document.getElementById('notificationSound');
}
this._notiAudio.play();
}
_playInviteSound() {
if (!this._inviteAudio) {
- this._inviteAudio = new Audio(InviteSound);
+ this._inviteAudio = document.getElementById('inviteSound');
}
this._inviteAudio.play();
}
supported by Chrome, Edge, Opera and Firefox */
}
+audio:not([controls]) {
+ display: none !important;
+}
+
.flex--center {
display: flex;
justify-content: center;