fix showing error alert on audio resync
This commit is contained in:
parent
483eb20c88
commit
e03389909e
|
|
@ -278,11 +278,18 @@ ConfigureTracksActions = @ConfigureTracksActions
|
||||||
|
|
||||||
onAudioResync: `async function() {
|
onAudioResync: `async function() {
|
||||||
logger.debug("audio resyncing");
|
logger.debug("audio resyncing");
|
||||||
const response = await context.jamClient.SessionAudioResync();
|
try{
|
||||||
if (response != null) {
|
const response = await context.jamClient.SessionAudioResync();
|
||||||
return this.app.notify({
|
if(!response.process_status === 'Success') {
|
||||||
|
this.app.notify({
|
||||||
|
"title": "Error",
|
||||||
|
"text": 'Error in audio resyncing',
|
||||||
|
"icon_url": "/assets/content/icon_alert_big.png"});
|
||||||
|
}
|
||||||
|
}catch(e){
|
||||||
|
this.app.notify({
|
||||||
"title": "Error",
|
"title": "Error",
|
||||||
"text": response,
|
"text": e.message,
|
||||||
"icon_url": "/assets/content/icon_alert_big.png"});
|
"icon_url": "/assets/content/icon_alert_big.png"});
|
||||||
}
|
}
|
||||||
}`
|
}`
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue