feat: Add audio alert for incoming messages on dashboard (#1738)
Fixes: #1345
This commit is contained in:
committed by
GitHub
parent
ca4a766b82
commit
9e8a943ec7
@@ -20,6 +20,7 @@ import App from '../dashboard/App';
|
||||
import i18n from '../dashboard/i18n';
|
||||
import createAxios from '../dashboard/helper/APIHelper';
|
||||
import commonHelpers from '../dashboard/helper/commons';
|
||||
import { getAlertAudio } from '../shared/helpers/AudioNotificationHelper';
|
||||
import router from '../dashboard/routes';
|
||||
import store from '../dashboard/store';
|
||||
import vueActionCable from '../dashboard/helper/actionCable';
|
||||
@@ -70,7 +71,6 @@ window.onload = () => {
|
||||
}).$mount('#app');
|
||||
vueActionCable.init();
|
||||
};
|
||||
|
||||
window.addEventListener('load', () => {
|
||||
verifyServiceWorkerExistence(registration =>
|
||||
registration.pushManager.getSubscription().then(subscription => {
|
||||
@@ -79,4 +79,5 @@ window.addEventListener('load', () => {
|
||||
}
|
||||
})
|
||||
);
|
||||
getAlertAudio();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user