Quote:
Originally Posted by jony08
I got this message when I tried to make another custom style for the notes.
calibre, version 4.99.13
ERROR: Unhandled error: Uncaught TypeError: Cannot read property 'classList' of undefined<br><span style="font-size:smaller">Error at userscript:viewer.js:20605:18</span>
Traceback (most recent call last):
at HTMLAnchorElement.ρσ_anonfunc (userscript:viewer.js:9312:54)
at ρσ_anonfunc (userscript:viewer.js:20389:21)
at EditNotesAndColors.hide_add_style (userscript:viewer.js:20593:22)
at EditNotesAndColors.add_new_style (userscript:viewer.js:20605:18)
TypeError: Cannot read property 'classList' of undefined
|
I got this error too. In my case, the steps to reproduce on Viewer:
1) Created a custom style
2) Used it
3) Selected the custom style and pressed 'Remove style'. Then, clicked 'Cancel'.
4) It didn't work. Now the style is there, but when I click it, there is no option to remove it
5) When I click now to create a new style, it gives me the error above
Update: after using another highlight style, now the 'deleted' highlight is gone, and I get no error.