Dont use dynamic CS in Tweak Book

This commit is contained in:
Kovid Goyal 2013-11-21 20:54:19 +05:30
parent 3d47218b46
commit 2de03bb4b4
2 changed files with 3 additions and 3 deletions

Binary file not shown.

View File

@ -20,7 +20,7 @@ from PyQt4.Qt import (
from PyQt4.QtWebKit import QWebView, QWebInspector, QWebPage
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.base import serialize, OEB_DOCS
from calibre.ptempfile import PersistentTemporaryDirectory
@ -270,8 +270,8 @@ class WebPage(QWebPage):
def init_javascript(self):
if not hasattr(self, 'js'):
from calibre.utils.resources import compiled_coffeescript
self.js = compiled_coffeescript('ebooks.oeb.display.utils', dynamic=DEBUG)
self.js += compiled_coffeescript('ebooks.oeb.polish.preview', dynamic=DEBUG)
self.js = compiled_coffeescript('ebooks.oeb.display.utils', dynamic=False)
self.js += compiled_coffeescript('ebooks.oeb.polish.preview', dynamic=False)
self._line_numbers = None
mf = self.mainFrame()
mf.addToJavaScriptWindowObject("py_bridge", self)