(force = false)
| 1519 | |
| 1520 | //Go to the start of the comic |
| 1521 | function goStart(force = false) |
| 1522 | { |
| 1523 | if(force || !readingManga() || 1) |
| 1524 | { |
| 1525 | const hasComic = readingManga() ? dom.nextComic() : dom.previousComic(); |
| 1526 | progress.activeSave(); |
| 1527 | |
| 1528 | if((currentIndex > indexNum || (currentIndex - 1 == 0 && hasComic)) && (!maxPageVisibility || currentPageVisibility == 0)) |
| 1529 | { |
| 1530 | goPrevious(); |
| 1531 | |
| 1532 | return false; |
| 1533 | } |
| 1534 | else |
| 1535 | { |
| 1536 | readingDirection = true; |
| 1537 | realReadingDirection = false; |
| 1538 | |
| 1539 | goToIndex(1, true); |
| 1540 | |
| 1541 | return true; |
| 1542 | } |
| 1543 | } |
| 1544 | else |
| 1545 | { |
| 1546 | return goEnd(true); |
| 1547 | } |
| 1548 | } |
| 1549 | |
| 1550 | function goPrevComic() |
| 1551 | { |
no test coverage detected