From 02fc49eea414242802c41d0d53f959fcd1acddaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juraj=20Nyi=CC=81ri?= Date: Wed, 5 May 2021 21:32:39 +0200 Subject: [PATCH] Update: Remove debug console logs --- dist/plex-meets-homeassistant.js | 11 ----------- src/plex-meets-homeassistant.ts | 12 ------------ 2 files changed, 23 deletions(-) diff --git a/dist/plex-meets-homeassistant.js b/dist/plex-meets-homeassistant.js index dc0cc34..42908c6 100644 --- a/dist/plex-meets-homeassistant.js +++ b/dist/plex-meets-homeassistant.js @@ -19533,10 +19533,7 @@ class PlexMeetsHomeAssistant extends HTMLElement { if (this.episodesElem && !this.episodesElemFreshlyLoaded) { this.episodesElem.innerHTML = ''; this.episodesElem.style.display = 'none'; - // fix for a specific case when user scrolls outside of normal home assistant area for seasons look - console.log('AAA'); this.resizeBackground(); - console.log('BBB'); } }, 700); } @@ -19714,7 +19711,6 @@ class PlexMeetsHomeAssistant extends HTMLElement { episodeContainer.append(episodeNumber); episodeContainer.addEventListener('click', episodeEvent => { episodeEvent.stopPropagation(); - console.log(episodeData); }); this.episodesElem.append(episodeContainer); } @@ -19734,9 +19730,7 @@ class PlexMeetsHomeAssistant extends HTMLElement { })(); } else { - console.log('A'); await this.minimizeSeasons(); - console.log('B'); this.hideEpisodes(); this.activeMovieElem.style.top = `${top + 16}px`; if (this.detailElem && this.detailElem.children[1]) { @@ -19772,18 +19766,13 @@ class PlexMeetsHomeAssistant extends HTMLElement { } const requiredSeasonBodyHeight = parseInt(this.seasonsElem.style.top.replace('px', ''), 10) + this.seasonsElem.scrollHeight; const requiredEpisodeBodyHeight = parseInt(this.episodesElem.style.top.replace('px', ''), 10) + this.episodesElem.scrollHeight; - console.log(this.seasonsElemHidden); - console.log(this.episodesElemHidden); if (requiredSeasonBodyHeight > this.contentBGHeight && !this.seasonsElemHidden) { - console.log('1'); contentbg[0].style.height = `${requiredSeasonBodyHeight}px`; } else if (requiredEpisodeBodyHeight > this.contentBGHeight && !this.episodesElemHidden) { - console.log('2'); contentbg[0].style.height = `${requiredEpisodeBodyHeight}px`; } else { - console.log('3'); contentbg[0].style.height = '100%'; } } diff --git a/src/plex-meets-homeassistant.ts b/src/plex-meets-homeassistant.ts index d8a5f37..c73104b 100644 --- a/src/plex-meets-homeassistant.ts +++ b/src/plex-meets-homeassistant.ts @@ -323,10 +323,7 @@ class PlexMeetsHomeAssistant extends HTMLElement { if (this.episodesElem && !this.episodesElemFreshlyLoaded) { this.episodesElem.innerHTML = ''; this.episodesElem.style.display = 'none'; - // fix for a specific case when user scrolls outside of normal home assistant area for seasons look - console.log('AAA'); this.resizeBackground(); - console.log('BBB'); } }, 700); } @@ -535,7 +532,6 @@ class PlexMeetsHomeAssistant extends HTMLElement { episodeContainer.addEventListener('click', episodeEvent => { episodeEvent.stopPropagation(); - console.log(episodeData); }); this.episodesElem.append(episodeContainer); @@ -556,9 +552,7 @@ class PlexMeetsHomeAssistant extends HTMLElement { } })(); } else { - console.log('A'); await this.minimizeSeasons(); - console.log('B'); this.hideEpisodes(); this.activeMovieElem.style.top = `${top + 16}px`; if (this.detailElem && (this.detailElem.children[1] as HTMLElement)) { @@ -601,17 +595,11 @@ class PlexMeetsHomeAssistant extends HTMLElement { const requiredEpisodeBodyHeight = parseInt(this.episodesElem.style.top.replace('px', ''), 10) + this.episodesElem.scrollHeight; - console.log(this.seasonsElemHidden); - console.log(this.episodesElemHidden); - if (requiredSeasonBodyHeight > this.contentBGHeight && !this.seasonsElemHidden) { - console.log('1'); (contentbg[0] as HTMLElement).style.height = `${requiredSeasonBodyHeight}px`; } else if (requiredEpisodeBodyHeight > this.contentBGHeight && !this.episodesElemHidden) { - console.log('2'); (contentbg[0] as HTMLElement).style.height = `${requiredEpisodeBodyHeight}px`; } else { - console.log('3'); (contentbg[0] as HTMLElement).style.height = '100%'; } }