10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-12-25 05:43:46 +01:00

Check if MathJax.typesetPromise exist before define it in the polyfill

This commit is contained in:
Mickaël Véril 2020-04-30 20:31:30 +02:00
parent 8ecb4dbf75
commit 2f213fe691

View File

@ -1,4 +1,5 @@
function MathJaxPolyfillInit(){
if (!MathJax.typesetPromise) {
var typesetPromise = function() {
return new Promise(function (resolve, reject) {
MathJax.Hub.Queue(["Typeset",MathJax.Hub],[resolve]);
@ -6,3 +7,4 @@ function MathJaxPolyfillInit(){
}
MathJax.typesetPromise=typesetPromise
}
}