|
|
|
@ -98,6 +98,18 @@ class PlexMeetsHomeAssistant extends HTMLElement {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
loadInitialData = async (): Promise<void> => {
|
|
|
|
|
window.addEventListener('scroll', () => {
|
|
|
|
|
const height = Math.max(
|
|
|
|
|
document.body.scrollHeight,
|
|
|
|
|
document.body.offsetHeight,
|
|
|
|
|
document.documentElement.clientHeight,
|
|
|
|
|
document.documentElement.scrollHeight,
|
|
|
|
|
document.documentElement.offsetHeight
|
|
|
|
|
);
|
|
|
|
|
if (window.innerHeight + window.scrollY > height - 300) {
|
|
|
|
|
console.log('scrolled');
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
this.loading = true;
|
|
|
|
|
this.renderPage();
|
|
|
|
|
try {
|
|
|
|
|