From 532a217981a4386541b3c6981a4a35fcacb65f5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juraj=20Nyi=CC=81ri?= Date: Sun, 4 Jul 2021 20:57:42 +0200 Subject: [PATCH] Remove: Left over console logs --- dist/plex-meets-homeassistant.js | 4 +--- src/modules/utils.ts | 1 - src/plex-meets-homeassistant.ts | 3 +-- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/dist/plex-meets-homeassistant.js b/dist/plex-meets-homeassistant.js index 4dae8b5..3843c15 100644 --- a/dist/plex-meets-homeassistant.js +++ b/dist/plex-meets-homeassistant.js @@ -19313,7 +19313,6 @@ const clickHandler = (elem, clickFunction, holdFunction) => { elem.addEventListener('touchcancel', cancel); }; const createEpisodesView = (playController, plex, data) => { - console.log(data); const episodeContainer = document.createElement('div'); episodeContainer.className = 'episodeContainer'; episodeContainer.style.width = `${CSS_STYLE.episodeWidth}px`; @@ -21256,13 +21255,12 @@ class PlexMeetsHomeAssistant extends HTMLElement { } movieElem.append(interactiveArea); clickHandler(playButton, (event) => { - console.log('click'); event.stopPropagation(); if (this.hassObj && this.playController) { this.playController.play(data, true); } }, (event) => { - console.log('hold'); + console.log('Play version... will be here!'); event.stopPropagation(); }); const titleElem = document.createElement('div'); diff --git a/src/modules/utils.ts b/src/modules/utils.ts index 3089a0e..a767206 100644 --- a/src/modules/utils.ts +++ b/src/modules/utils.ts @@ -154,7 +154,6 @@ const clickHandler = (elem: HTMLButtonElement, clickFunction: Function, holdFunc }; const createEpisodesView = (playController: PlayController, plex: Plex, data: Record): HTMLElement => { - console.log(data); const episodeContainer = document.createElement('div'); episodeContainer.className = 'episodeContainer'; episodeContainer.style.width = `${CSS_STYLE.episodeWidth}px`; diff --git a/src/plex-meets-homeassistant.ts b/src/plex-meets-homeassistant.ts index aa58265..bc89eba 100644 --- a/src/plex-meets-homeassistant.ts +++ b/src/plex-meets-homeassistant.ts @@ -1371,7 +1371,6 @@ class PlexMeetsHomeAssistant extends HTMLElement { clickHandler( playButton, (event: any): void => { - console.log('click'); event.stopPropagation(); if (this.hassObj && this.playController) { @@ -1379,7 +1378,7 @@ class PlexMeetsHomeAssistant extends HTMLElement { } }, (event: any): void => { - console.log('hold'); + console.log('Play version... will be here!'); event.stopPropagation(); } );