mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
...
This commit is contained in:
parent
7dc9a727b9
commit
5bf14d6afc
Binary file not shown.
@ -33,8 +33,11 @@ class MathJax
|
|||||||
|
|
||||||
script.type = 'text/javascript'
|
script.type = 'text/javascript'
|
||||||
script.onerror = (ev) ->
|
script.onerror = (ev) ->
|
||||||
console.log('Failed to load MathJax script: ' + ev.targt.src)
|
console.log('Failed to load MathJax script: ' + ev.target.src)
|
||||||
script.src = this.base + '/MathJax.js'
|
base = this.base
|
||||||
|
if base.substr(base.length - 1) != '/'
|
||||||
|
base += '/'
|
||||||
|
script.src = base + 'MathJax.js'
|
||||||
script.text = user_config + ('''
|
script.text = user_config + ('''
|
||||||
MathJax.Hub.signal.Interest(function (message) {if (String(message).match(/error/i)) {console.log(message)}});
|
MathJax.Hub.signal.Interest(function (message) {if (String(message).match(/error/i)) {console.log(message)}});
|
||||||
MathJax.Hub.Config({
|
MathJax.Hub.Config({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user