Avoid to call a function in the js sandbox when it has been destroyed
This commit is contained in:
parent
0d8828f93d
commit
4bdbf4bb3d
@ -62,6 +62,9 @@ export class SandboxSupportBase {
|
|||||||
* @param {Array<Object>} args - Arguments of the function.
|
* @param {Array<Object>} args - Arguments of the function.
|
||||||
*/
|
*/
|
||||||
callSandboxFunction(name, args) {
|
callSandboxFunction(name, args) {
|
||||||
|
if (!this.commFun) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
args = this.exportValueToSandbox(args);
|
args = this.exportValueToSandbox(args);
|
||||||
this.commFun(name, args);
|
this.commFun(name, args);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user