Remove: Left over console logs

pull/16/head
Juraj Nyíri 3 years ago
parent 95409b93a9
commit 532a217981

@ -19313,7 +19313,6 @@ const clickHandler = (elem, clickFunction, holdFunction) => {
elem.addEventListener('touchcancel', cancel); elem.addEventListener('touchcancel', cancel);
}; };
const createEpisodesView = (playController, plex, data) => { const createEpisodesView = (playController, plex, data) => {
console.log(data);
const episodeContainer = document.createElement('div'); const episodeContainer = document.createElement('div');
episodeContainer.className = 'episodeContainer'; episodeContainer.className = 'episodeContainer';
episodeContainer.style.width = `${CSS_STYLE.episodeWidth}px`; episodeContainer.style.width = `${CSS_STYLE.episodeWidth}px`;
@ -21256,13 +21255,12 @@ class PlexMeetsHomeAssistant extends HTMLElement {
} }
movieElem.append(interactiveArea); movieElem.append(interactiveArea);
clickHandler(playButton, (event) => { clickHandler(playButton, (event) => {
console.log('click');
event.stopPropagation(); event.stopPropagation();
if (this.hassObj && this.playController) { if (this.hassObj && this.playController) {
this.playController.play(data, true); this.playController.play(data, true);
} }
}, (event) => { }, (event) => {
console.log('hold'); console.log('Play version... will be here!');
event.stopPropagation(); event.stopPropagation();
}); });
const titleElem = document.createElement('div'); const titleElem = document.createElement('div');

@ -154,7 +154,6 @@ const clickHandler = (elem: HTMLButtonElement, clickFunction: Function, holdFunc
}; };
const createEpisodesView = (playController: PlayController, plex: Plex, data: Record<string, any>): HTMLElement => { const createEpisodesView = (playController: PlayController, plex: Plex, data: Record<string, any>): HTMLElement => {
console.log(data);
const episodeContainer = document.createElement('div'); const episodeContainer = document.createElement('div');
episodeContainer.className = 'episodeContainer'; episodeContainer.className = 'episodeContainer';
episodeContainer.style.width = `${CSS_STYLE.episodeWidth}px`; episodeContainer.style.width = `${CSS_STYLE.episodeWidth}px`;

@ -1371,7 +1371,6 @@ class PlexMeetsHomeAssistant extends HTMLElement {
clickHandler( clickHandler(
playButton, playButton,
(event: any): void => { (event: any): void => {
console.log('click');
event.stopPropagation(); event.stopPropagation();
if (this.hassObj && this.playController) { if (this.hassObj && this.playController) {
@ -1379,7 +1378,7 @@ class PlexMeetsHomeAssistant extends HTMLElement {
} }
}, },
(event: any): void => { (event: any): void => {
console.log('hold'); console.log('Play version... will be here!');
event.stopPropagation(); event.stopPropagation();
} }
); );

Loading…
Cancel
Save