Skip to content

Commit 5ff5932

Browse files
committed
New: Tracking also by current page/image chapter/volume
1 parent ca59ab8 commit 5ff5932

3 files changed

Lines changed: 161 additions & 74 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
88

99
##### 🚀 New Features
1010

11-
- Extract tracking chapter/volumes also from image names [`2218bfb`](https://github.com/ollm/OpenComic/commit/2218bfbb76f14fb5c53414ddef489a16198914d5)
11+
- Extract tracking chapter/volume also from image names [`2218bfb`](https://github.com/ollm/OpenComic/commit/2218bfbb76f14fb5c53414ddef489a16198914d5)
12+
- Tracking also by current page/image chapter/volume
1213

1314
##### 🐛 Bug Fixes
1415

scripts/reading.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1018,6 +1018,8 @@ function goToImageCL(index, animation = true, fromScroll = false, fromPageRange
10181018
reading.discord.updateThrottle();
10191019

10201020
dom.this(template._contentRight()).find('.reading-progress').class(isFullScreen ? config.readingShowPageNumberFullScreen : config.readingShowPageNumber, 'active').find('textPath', true).html(reading.currentPage()+' / '+reading.totalPages());
1021+
1022+
tracking.trackImage();
10211023
}
10221024

10231025
const readingLeft = contentLeft.querySelector('.reading-left-images');
@@ -5721,6 +5723,8 @@ async function read(path, index = 1, end = false, isCanvas = false, isEbook = fa
57215723
}
57225724

57235725
template.contentRight().children('div').css({scrollbarGutter: readingViewIs('scroll') ? '' : 'initial'});
5726+
5727+
tracking.getImagesChapter();
57245728

57255729
if(!config.readingTrackingAtTheEnd)
57265730
{

0 commit comments

Comments
 (0)