Skip to content

Commit

Permalink
[embedlite-components] Guard runjavascript error handler with callbac…
Browse files Browse the repository at this point in the history
…kId. JB#53914 OMP#JOLLA-29
  • Loading branch information
rainemak committed Apr 21, 2021
1 parent 99f964d commit f26424d
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions jsscripts/embedhelper.js
Expand Up @@ -396,13 +396,15 @@ EmbedHelper.prototype = {
});
}
}).catch(error => {
let result
sendAsyncMessage("embed:runjavascript", {
"result": result,
"error": error,
"callbackId": callbackId
});
});
if (callbackId >= 0) {
let result
sendAsyncMessage("embed:runjavascript", {
"result": result,
"error": error,
"callbackId": callbackId
});
}
});
}

break;
Expand Down

0 comments on commit f26424d

Please sign in to comment.