mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-19 23:54:28 +01:00
...
This commit is contained in:
parent
7dc9a727b9
commit
5bf14d6afc
2 changed files with 5 additions and 2 deletions
Binary file not shown.
|
|
@ -33,8 +33,11 @@ class MathJax
|
|||
|
||||
script.type = 'text/javascript'
|
||||
script.onerror = (ev) ->
|
||||
console.log('Failed to load MathJax script: ' + ev.targt.src)
|
||||
script.src = this.base + '/MathJax.js'
|
||||
console.log('Failed to load MathJax script: ' + ev.target.src)
|
||||
base = this.base
|
||||
if base.substr(base.length - 1) != '/'
|
||||
base += '/'
|
||||
script.src = 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({
|
||||
|
|
|
|||
Loading…
Reference in a new issue