1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-24 06:28:42 +01:00

Fixes bug with has more

This commit is contained in:
Amir Raminfar
2020-08-14 12:34:30 -07:00
parent fe8b9a7b6e
commit 439b8c27c8

View File

@@ -49,7 +49,12 @@ export default {
if (!this.paused) {
this.scrollToBottom("instant");
} else {
this.hasMore = true;
const record = e[e.length - 1];
if (
record.target.children[record.target.children.length - 1] == record.addedNodes[record.addedNodes.length - 1]
) {
this.hasMore = true;
}
}
});
mutationObserver.observe(content, { childList: true, subtree: true });