diff --git a/resources/compiled_coffeescript.zip b/resources/compiled_coffeescript.zip index fefc756553..40c276e6be 100644 Binary files a/resources/compiled_coffeescript.zip and b/resources/compiled_coffeescript.zip differ diff --git a/src/calibre/ebooks/oeb/display/mathjax.coffee b/src/calibre/ebooks/oeb/display/mathjax.coffee index 78cb80aee4..d7cdf2ea00 100644 --- a/src/calibre/ebooks/oeb/display/mathjax.coffee +++ b/src/calibre/ebooks/oeb/display/mathjax.coffee @@ -32,7 +32,9 @@ class MathJax scale = if is_windows then 160 else 100 script.type = 'text/javascript' - script.src = this.base + 'MathJax.js' + script.onerror = (ev) -> + console.log('Failed to load MathJax script: ' + ev.targt.src) + script.src = this.base + '/MathJax.js' script.text = user_config + (''' MathJax.Hub.signal.Interest(function (message) {if (String(message).match(/error/i)) {console.log(message)}}); MathJax.Hub.Config({