mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-01-11 22:40:31 +00:00
catch errors in dispatch
This commit is contained in:
parent
cba21f260b
commit
bc652ea1f5
1 changed files with 5 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue