mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fix script error on now playing page
This commit is contained in:
parent
13a2268043
commit
75dba0b17f
9 changed files with 70 additions and 24 deletions
|
@ -125,7 +125,13 @@
|
|||
.on('error', onError)[0];
|
||||
}
|
||||
|
||||
function enableViblast() {
|
||||
function enableViblast(src) {
|
||||
|
||||
if (src) {
|
||||
if (src.indexOf('.m3u8') == -1) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return MediaPlayer.canPlayHls() && !MediaPlayer.canPlayNativeHls();
|
||||
}
|
||||
|
@ -259,7 +265,7 @@
|
|||
}
|
||||
else {
|
||||
|
||||
if (enableViblast()) {
|
||||
if (enableViblast(val)) {
|
||||
|
||||
viblast(elem).setup({
|
||||
key: 'N8FjNTQ3NDdhZqZhNGI5NWU5ZTI=',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue