mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-18 19:38:20 -07:00
Merge pull request #3377 from thornbill/fix-plugin-disabling
This commit is contained in:
commit
2700d7c8bb
@ -137,11 +137,11 @@ function loadPlugins() {
|
|||||||
return getPlugins().then(function (list) {
|
return getPlugins().then(function (list) {
|
||||||
if (!appHost.supports('remotecontrol')) {
|
if (!appHost.supports('remotecontrol')) {
|
||||||
// Disable remote player plugins if not supported
|
// Disable remote player plugins if not supported
|
||||||
list.splice(list.indexOf('sessionPlayer'), 1);
|
list = list.filter(plugin => !plugin.startsWith('sessionPlayer')
|
||||||
list.splice(list.indexOf('chromecastPlayer'), 1);
|
&& !plugin.startsWith('chromecastPlayer'));
|
||||||
} else if (!browser.chrome && !browser.edgeChromium && !browser.opera) {
|
} else if (!browser.chrome && !browser.edgeChromium && !browser.opera) {
|
||||||
// Disable chromecast player in unsupported browsers
|
// Disable chromecast player in unsupported browsers
|
||||||
list.splice(list.indexOf('chromecastPlayer'), 1);
|
list = list.filter(plugin => !plugin.startsWith('chromecastPlayer'));
|
||||||
}
|
}
|
||||||
|
|
||||||
// add any native plugins
|
// add any native plugins
|
||||||
|
Loading…
Reference in New Issue
Block a user