File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,18 +30,6 @@ export class BookModel {
3030 this . _medianPageSize = null ;
3131 /** @type {[PageData[], number] } */
3232 this . _getDataFlattenedCached = null ;
33-
34- // Heal missing first page number assertion
35- const pages = this . _getDataFlattened ( ) ;
36- const firstNumberedPageIndex = pages . findIndex ( page => page . pageNum != undefined && ! isNaN ( parseFloat ( page . pageNum ) ) ) ;
37- if ( firstNumberedPageIndex != - 1 && firstNumberedPageIndex > 0 ) {
38- const pageNum = parseFloat ( pages [ firstNumberedPageIndex ] . pageNum ) ;
39- if ( ! isNaN ( pageNum ) ) {
40- // Note: Since the pages are always sorted in increasing pageNum/index
41- // order, this will work for both left-to-right and right-to-left books
42- pages [ firstNumberedPageIndex - 1 ] . pageNum = pageNum - 1 ;
43- }
44- }
4533 }
4634
4735 /** Get median width/height of page in inches. Memoized for performance. */
You can’t perform that action at this time.
0 commit comments