Merge pull request #12275 from mariogasparoni/fix-12228

fix: bug in playAudioAlert method
This commit is contained in:
Anton Georgiev 2021-05-04 11:08:17 -04:00 committed by GitHub
commit e081089051
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,7 +78,7 @@ class ActivityCheck extends Component {
playAudioAlert() {
this.alert = new Audio(`${Meteor.settings.public.app.cdn + Meteor.settings.public.app.basename + Meteor.settings.public.app.instanceId}/resources/sounds/notify.mp3`);
alert.addEventListener('ended', () => { alert.src = null; });
this.alert.addEventListener('ended', () => { this.alert.src = null; });
this.alert.play();
}