Merge pull request #12275 from mariogasparoni/fix-12228
fix: bug in playAudioAlert method
This commit is contained in:
commit
e081089051
@ -78,7 +78,7 @@ class ActivityCheck extends Component {
|
|||||||
|
|
||||||
playAudioAlert() {
|
playAudioAlert() {
|
||||||
this.alert = new Audio(`${Meteor.settings.public.app.cdn + Meteor.settings.public.app.basename + Meteor.settings.public.app.instanceId}/resources/sounds/notify.mp3`);
|
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();
|
this.alert.play();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user