mirror of
https://github.com/LCPQ/QUESTDB_website.git
synced 2024-12-25 13:53:48 +01:00
Check if MathJax.typesetPromise exist before define it in the polyfill
This commit is contained in:
parent
8ecb4dbf75
commit
2f213fe691
@ -1,8 +1,10 @@
|
|||||||
function MathJaxPolyfillInit(){
|
function MathJaxPolyfillInit(){
|
||||||
|
if (!MathJax.typesetPromise) {
|
||||||
var typesetPromise = function() {
|
var typesetPromise = function() {
|
||||||
return new Promise(function (resolve, reject) {
|
return new Promise(function (resolve, reject) {
|
||||||
MathJax.Hub.Queue(["Typeset",MathJax.Hub],[resolve]);
|
MathJax.Hub.Queue(["Typeset",MathJax.Hub],[resolve]);
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
MathJax.typesetPromise=typesetPromise
|
MathJax.typesetPromise=typesetPromise
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user