1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Merge pull request #2116 from thornbill/disable-chromecast

Disable chromecast in unsupported browsers
This commit is contained in:
Bill Thornton 2020-11-25 00:49:46 -05:00 committed by GitHub
commit 3527ef27cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -125,13 +125,13 @@ function loadPlugins() {
console.groupCollapsed('loading installed plugins');
console.dir(pluginManager);
return getPlugins().then(function (list) {
// these two plugins are dependent on features
if (!appHost.supports('remotecontrol')) {
// Disable remote player plugins if not supported
list.splice(list.indexOf('sessionPlayer'), 1);
if (!browser.chrome && !browser.opera) {
list.splice(list.indexOf('chromecastPlayer', 1));
}
list.splice(list.indexOf('chromecastPlayer'), 1);
} else if (!browser.chrome && !browser.edgeChromium && !browser.opera) {
// Disable chromecast player in unsupported browsers
list.splice(list.indexOf('chromecastPlayer'), 1);
}
// add any native plugins