Remove non-existing #root from css selectors (#142)

This commit is contained in:
Alex Ling 2021-01-11 05:27:57 +00:00
parent f51d27860a
commit ac9c51dd33
2 changed files with 2 additions and 2 deletions

View File

@ -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');

View File

@ -111,7 +111,7 @@
<style>
img[data-src][src*='data:image'] { background: white; }
#root img { width: 100%; }
img { width: 100%; }
</style>
</html>