ollm / OpenComic

Comic and Manga reader, written with Node.js and using Electron
GNU General Public License v3.0
946 stars 80 forks source link

[Bug]: Cannot read properties of null (reading 'classList') #254

Closed pein0saga closed 3 months ago

pein0saga commented 3 months ago

Preflight Checklist

OpenComic Version

1.2.0master.cc1ebbc

Operating System

WIN 10 22H2 19045.3324

Steps to reproduce

Open the certain cbz file

Expected Behavior

Open the file without error message.

Actual Behavior

Open the file with an error message.

2024-07-30_18-17-47

Error message


C:\Program Files\OpenComic\resources\app.asar\scripts\dom\dom.js:209 Uncaught TypeError: Cannot read properties of null (reading 'classList')
    at _dom.removeClass (C:\Program Files\OpenComic\resources\app.asar\scripts\dom\dom.js:209:18)
    at _dom.class (C:\Program Files\OpenComic\resources\app.asar\scripts\dom\dom.js:223:9)
    at changeHeaderButtons (C:\Program Files\OpenComic\resources\app.asar\scripts\reading.js:855:36)
    at HTMLDivElement.onScroll (C:\Program Files\OpenComic\resources\app.asar\scripts\reading.js:1590:3)
    at HTMLDivElement.dispatch (C:\Program Files\OpenComic\resources\app.asar\node_modules\jquery\dist\jquery.js:5145:27)
    at elemData.handle (C:\Program Files\OpenComic\resources\app.asar\node_modules\jquery\dist\jquery.js:4949:28)
C:\Program Files\OpenComic\resources\app.asar\scripts\file-manager.js:1908 read7z: D:\Komga\Silver\同人誌[でーわぃてーむ.cbz: 1068.22412109375 ms
C:\Program Files\OpenComic\resources\app.asar\scripts\file-manager.js:1337 extractCompressed... (34 files) D:\Komga\Silver\同人誌[でーわぃてーむ.cbz
C:\Program Files\OpenComic\resources\app.asar\scripts\file-manager.js:2008 extract7z: D:\Komga\Silver\同人誌[でーわぃてーむ.cbz: 655.86181640625 ms

Additional Information

No response

Sample file

No response