View Single Post
Old 09-02-2020, 02:32 PM   #315
thiago.eec
Wizard
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 1,220
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
Quote:
Originally Posted by jony08 View Post
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.
thiago.eec is offline