From c8ad09ab6d433960b846cdb526aaf21d20d6f0f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juraj=20Nyi=CC=81ri?= Date: Fri, 11 Jun 2021 14:27:20 +0200 Subject: [PATCH] Remove: Leftover console logs --- dist/plex-meets-homeassistant.js | 7 ------- src/plex-meets-homeassistant.ts | 7 ------- 2 files changed, 14 deletions(-) diff --git a/dist/plex-meets-homeassistant.js b/dist/plex-meets-homeassistant.js index 328601e..e58e3e1 100644 --- a/dist/plex-meets-homeassistant.js +++ b/dist/plex-meets-homeassistant.js @@ -20845,27 +20845,20 @@ class PlexMeetsHomeAssistant extends HTMLElement { } }; this.resizeBackground = () => { - console.log('resizeBackground'); if (this.seasonsElem && this.episodesElem && this.card) { const contentbg = this.getElementsByClassName('contentbg')[0]; this.contentBGHeight = getHeight(contentbg); - console.log(contentbg); - console.log(this.contentBGHeight); 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; if (requiredSeasonBodyHeight > this.contentBGHeight && !this.seasonsElemHidden) { - console.log('1'); this.card.style.height = `${requiredSeasonBodyHeight + 16}px`; } else if (requiredEpisodeBodyHeight > this.contentBGHeight && !this.episodesElemHidden) { - console.log('2'); this.card.style.height = `${requiredEpisodeBodyHeight + 16}px`; } else { - console.log('3'); this.card.style.height = '100%'; } - console.log(getHeight(contentbg)); } }; this.showBackground = () => { diff --git a/src/plex-meets-homeassistant.ts b/src/plex-meets-homeassistant.ts index fded5a5..1b91bff 100644 --- a/src/plex-meets-homeassistant.ts +++ b/src/plex-meets-homeassistant.ts @@ -1137,28 +1137,21 @@ class PlexMeetsHomeAssistant extends HTMLElement { }; resizeBackground = (): void => { - console.log('resizeBackground'); if (this.seasonsElem && this.episodesElem && this.card) { const contentbg = this.getElementsByClassName('contentbg')[0] as HTMLElement; this.contentBGHeight = getHeight(contentbg); - console.log(contentbg); - console.log(this.contentBGHeight); 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; if (requiredSeasonBodyHeight > this.contentBGHeight && !this.seasonsElemHidden) { - console.log('1'); this.card.style.height = `${requiredSeasonBodyHeight + 16}px`; } else if (requiredEpisodeBodyHeight > this.contentBGHeight && !this.episodesElemHidden) { - console.log('2'); this.card.style.height = `${requiredEpisodeBodyHeight + 16}px`; } else { - console.log('3'); this.card.style.height = '100%'; } - console.log(getHeight(contentbg)); } };