catch errors in dispatch

This commit is contained in:
nklhrstv 2021-01-04 18:05:42 +02:00
parent cba21f260b
commit bc652ea1f5

View file

@ -13,7 +13,11 @@ function CoreTransport(events) {
return get_state(field);
};
this.dispatch = function(action, field) {
return dispatch(action, field);
try {
return dispatch(action, field);
} catch (error) {
console.error('CoreTransport', error);
}
};
}