mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
Disable chromecast in unsupported browsers
This commit is contained in:
parent
205f7c326d
commit
a9c2473799
@ -125,13 +125,13 @@ function loadPlugins() {
|
|||||||
console.groupCollapsed('loading installed plugins');
|
console.groupCollapsed('loading installed plugins');
|
||||||
console.dir(pluginManager);
|
console.dir(pluginManager);
|
||||||
return getPlugins().then(function (list) {
|
return getPlugins().then(function (list) {
|
||||||
// these two plugins are dependent on features
|
|
||||||
if (!appHost.supports('remotecontrol')) {
|
if (!appHost.supports('remotecontrol')) {
|
||||||
|
// Disable remote player plugins if not supported
|
||||||
list.splice(list.indexOf('sessionPlayer'), 1);
|
list.splice(list.indexOf('sessionPlayer'), 1);
|
||||||
|
list.splice(list.indexOf('chromecastPlayer'), 1);
|
||||||
if (!browser.chrome && !browser.opera) {
|
} else if (!browser.chrome && !browser.edgeChromium && !browser.opera) {
|
||||||
list.splice(list.indexOf('chromecastPlayer', 1));
|
// Disable chromecast player in unsupported browsers
|
||||||
}
|
list.splice(list.indexOf('chromecastPlayer'), 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
// add any native plugins
|
// add any native plugins
|
||||||
|
Loading…
Reference in New Issue
Block a user