mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Dont use dynamic CS in Tweak Book
This commit is contained in:
parent
3d47218b46
commit
2de03bb4b4
Binary file not shown.
@ -20,7 +20,7 @@ from PyQt4.Qt import (
|
|||||||
from PyQt4.QtWebKit import QWebView, QWebInspector, QWebPage
|
from PyQt4.QtWebKit import QWebView, QWebInspector, QWebPage
|
||||||
|
|
||||||
from calibre import prints
|
from calibre import prints
|
||||||
from calibre.constants import iswindows, DEBUG
|
from calibre.constants import iswindows
|
||||||
from calibre.ebooks.oeb.polish.parsing import parse
|
from calibre.ebooks.oeb.polish.parsing import parse
|
||||||
from calibre.ebooks.oeb.base import serialize, OEB_DOCS
|
from calibre.ebooks.oeb.base import serialize, OEB_DOCS
|
||||||
from calibre.ptempfile import PersistentTemporaryDirectory
|
from calibre.ptempfile import PersistentTemporaryDirectory
|
||||||
@ -270,8 +270,8 @@ class WebPage(QWebPage):
|
|||||||
def init_javascript(self):
|
def init_javascript(self):
|
||||||
if not hasattr(self, 'js'):
|
if not hasattr(self, 'js'):
|
||||||
from calibre.utils.resources import compiled_coffeescript
|
from calibre.utils.resources import compiled_coffeescript
|
||||||
self.js = compiled_coffeescript('ebooks.oeb.display.utils', dynamic=DEBUG)
|
self.js = compiled_coffeescript('ebooks.oeb.display.utils', dynamic=False)
|
||||||
self.js += compiled_coffeescript('ebooks.oeb.polish.preview', dynamic=DEBUG)
|
self.js += compiled_coffeescript('ebooks.oeb.polish.preview', dynamic=False)
|
||||||
self._line_numbers = None
|
self._line_numbers = None
|
||||||
mf = self.mainFrame()
|
mf = self.mainFrame()
|
||||||
mf.addToJavaScriptWindowObject("py_bridge", self)
|
mf.addToJavaScriptWindowObject("py_bridge", self)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user