mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Viewer: Fix --debug-javascript not printing console messages
This commit is contained in:
parent
470a9b2f3e
commit
47dce862cc
@ -394,7 +394,7 @@ class Document(QWebPage): # {{{
|
|||||||
return ans
|
return ans
|
||||||
|
|
||||||
def javaScriptConsoleMessage(self, msg, lineno, msgid):
|
def javaScriptConsoleMessage(self, msg, lineno, msgid):
|
||||||
if DEBUG:
|
if DEBUG or self.debug_javascript:
|
||||||
prints(msg)
|
prints(msg)
|
||||||
|
|
||||||
def javaScriptAlert(self, frame, msg):
|
def javaScriptAlert(self, frame, msg):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user