Thread
:
Javascript runs in Ibook and Calibre Editor but not Calibre Reader
View Single Post
10-23-2021, 01:22 AM
#
5
kovidgoyal
creator of calibre
Posts: 45,418
Karma: 27757236
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You need to run your JS *after* the dom has loaded. A quick google will show you how to do that. And use the Inspector to debug your JS in the viewer, right click, choose inspector and open the console.
kovidgoyal
View Public Profile
Visit kovidgoyal's homepage!
Find More Posts by kovidgoyal
Track Posts by kovidgoyal via RSS