mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-20 13:18:29 +00:00
dispatch stop command if error is critical
This commit is contained in:
parent
3fa17159bb
commit
3c9d17819a
1 changed files with 4 additions and 0 deletions
|
|
@ -93,6 +93,10 @@ var HTMLVideo = function(container) {
|
|||
message: message,
|
||||
critical: critical
|
||||
});
|
||||
|
||||
if (error.critical) {
|
||||
self.dispatch('command', 'stop');
|
||||
}
|
||||
};
|
||||
function onPausedChanged() {
|
||||
events.emit('propChanged', 'paused', getPaused());
|
||||
|
|
|
|||
Loading…
Reference in a new issue