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

fix some minor console issues

This commit is contained in:
dkanada 2020-07-15 06:23:36 +09:00
parent 80c700cc71
commit a8a85df303
3 changed files with 5 additions and 2 deletions

View file

@ -72,7 +72,6 @@ define(['events', 'datetime', 'appSettings', 'itemHelper', 'pluginManager', 'pla
const now = (new Date).getTime(); const now = (new Date).getTime();
if (method !== reportPlaybackLastMethod || now - (reportPlaybackLastTime || 0) >= reportPlaybackLogDelay) { if (method !== reportPlaybackLastMethod || now - (reportPlaybackLastTime || 0) >= reportPlaybackLogDelay) {
console.debug(method + '-' + JSON.stringify(info));
reportPlaybackLastMethod = method; reportPlaybackLastMethod = method;
reportPlaybackLastTime = now; reportPlaybackLastTime = now;
} }

View file

@ -84,7 +84,7 @@ function showNewJoinGroupSelection (button, user, apiClient) {
actionsheet.show(menuOptions).then(function (id) { actionsheet.show(menuOptions).then(function (id) {
if (id == 'new-group') { if (id == 'new-group') {
apiClient.createSyncPlayGroup(); apiClient.createSyncPlayGroup();
} else { } else if (id) {
apiClient.joinSyncPlayGroup({ apiClient.joinSyncPlayGroup({
GroupId: id, GroupId: id,
PlayingItemId: playingItemId PlayingItemId: playingItemId

View file

@ -212,6 +212,7 @@ class SyncPlayManager {
if (!this.lastPlaybackWaiting) { if (!this.lastPlaybackWaiting) {
this.lastPlaybackWaiting = new Date(); this.lastPlaybackWaiting = new Date();
} }
events.trigger(this, 'waiting'); events.trigger(this, 'waiting');
} }
@ -288,6 +289,7 @@ class SyncPlayManager {
player.setPlaybackRate(this.localPlayerPlaybackRate); player.setPlaybackRate(this.localPlayerPlaybackRate);
this.localPlayerPlaybackRate = 1.0; this.localPlayerPlaybackRate = 1.0;
} }
this.currentPlayer = null; this.currentPlayer = null;
this.playbackRateSupported = false; this.playbackRateSupported = false;
} }
@ -433,6 +435,7 @@ class SyncPlayManager {
}); });
return; return;
} }
// Get playing item id // Get playing item id
let playingItemId; let playingItemId;
try { try {
@ -619,6 +622,7 @@ class SyncPlayManager {
if (this.currentPlayer) { if (this.currentPlayer) {
this.currentPlayer.setPlaybackRate(1); this.currentPlayer.setPlaybackRate(1);
} }
this.clearSyncIcon(); this.clearSyncIcon();
} }