diff options
Diffstat (limited to 'client/src/assets/player/shared')
-rw-r--r-- | client/src/assets/player/shared/upnext/upnext-plugin.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/client/src/assets/player/shared/upnext/upnext-plugin.ts b/client/src/assets/player/shared/upnext/upnext-plugin.ts index db969024d..e12e8c503 100644 --- a/client/src/assets/player/shared/upnext/upnext-plugin.ts +++ b/client/src/assets/player/shared/upnext/upnext-plugin.ts | |||
@@ -19,6 +19,9 @@ class UpNextPlugin extends Plugin { | |||
19 | 19 | ||
20 | super(player) | 20 | super(player) |
21 | 21 | ||
22 | // UpNext plugin can be called later, so ensure the player is not disposed | ||
23 | if (this.player.isDisposed()) return | ||
24 | |||
22 | this.player.ready(() => { | 25 | this.player.ready(() => { |
23 | player.addClass('vjs-upnext') | 26 | player.addClass('vjs-upnext') |
24 | }) | 27 | }) |