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

Fix PR issues.

This commit is contained in:
Ian Walton 2020-09-22 07:34:46 -04:00
parent f5311864bc
commit ecad2e4bda
3 changed files with 5 additions and 15 deletions

View file

@ -11,7 +11,7 @@ export function enable(enabled) {
if (enabled) {
const currentPlayerInfo = playbackManager.getPlayerInfo();
if (currentPlayerInfo && currentPlayerInfo.id && currentPlayerInfo.id) {
if (currentPlayerInfo && currentPlayerInfo.id) {
localStorage.setItem('autocastPlayerId', currentPlayerInfo.id);
}
} else {
@ -29,8 +29,6 @@ export function isEnabled() {
}
function onOpen() {
if (!supported()) return;
const playerId = localStorage.getItem('autocastPlayerId');
playbackManager.getTargets().then(function (targets) {
@ -44,6 +42,6 @@ function onOpen() {
}
const apiClient = window.connectionManager.currentApiClient();
if (apiClient) {
if (apiClient && supported()) {
events.on(apiClient, 'websocketopen', onOpen);
}