From ac9c51dd33ce4eed5bdacc5d1c3ac8a6436861b8 Mon Sep 17 00:00:00 2001 From: Alex Ling Date: Mon, 11 Jan 2021 05:27:57 +0000 Subject: [PATCH] Remove non-existing #root from css selectors (#142) --- public/js/reader.js | 2 +- src/views/reader.html.ecr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/js/reader.js b/public/js/reader.js index 8bf1133..c6a00b5 100644 --- a/public/js/reader.js +++ b/public/js/reader.js @@ -241,7 +241,7 @@ const readerComponent = () => { */ setupScroller() { if (this.mode !== 'continuous') return; - $('#root img').each((idx, el) => { + $('img').each((idx, el) => { $(el).on('inview', (event, inView) => { if (inView) { const current = $(event.currentTarget).attr('id'); diff --git a/src/views/reader.html.ecr b/src/views/reader.html.ecr index afeb510..ef84fe2 100644 --- a/src/views/reader.html.ecr +++ b/src/views/reader.html.ecr @@ -111,7 +111,7 @@