feat: Add audio alert for incoming messages on dashboard (#1738)

Fixes: #1345
This commit is contained in:
Nithin David Thomas
2021-03-04 19:24:03 +05:30
committed by GitHub
parent ca4a766b82
commit 9e8a943ec7
6 changed files with 115 additions and 3 deletions

View File

@@ -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();
});