mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-20 23:12:13 +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);
|
return get_state(field);
|
||||||
};
|
};
|
||||||
this.dispatch = function(action, 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