mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-08-16 07:26:48 +00:00
handle invalid option when handle setOptions action
This commit is contained in:
parent
817dcbd3cc
commit
8bd26cb601
1 changed files with 9 additions and 1 deletions
|
|
@ -187,7 +187,15 @@ function ChromecastTransport() {
|
|||
if (action) {
|
||||
switch (action.type) {
|
||||
case 'setOptions': {
|
||||
cast.framework.CastContext.getInstance().setOptions(action.options);
|
||||
try {
|
||||
cast.framework.CastContext.getInstance().setOptions(action.options);
|
||||
} catch (error) {
|
||||
events.emit('error', {
|
||||
...CAST_ERROR.INVALID_OPTIONS,
|
||||
error
|
||||
});
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
case 'requestSession': {
|
||||
|
|
|
|||
Loading…
Reference in a new issue