fix issues with the es build and locales.

This commit is contained in:
jfh
2020-09-09 12:14:00 +02:00
parent 029ed1a1e1
commit cf8c8a8398
56 changed files with 87 additions and 87 deletions

View File

@@ -44,7 +44,6 @@ export default {
// mathjaxSrc = 'http://cdn.mathjax.org/mathjax/latest/MathJax.js',
// Had been on https://c328740.ssl.cf1.rackcdn.com/mathjax/latest/MathJax.js?config=TeX-AMS-MML_SVG.js
// Obtained Text-AMS-MML_SVG.js from https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.3/config/TeX-AMS-MML_SVG.js
mathjaxSrcSecure = 'mathjax/MathJax.min.js?config=TeX-AMS-MML_SVG.js',
{uiStrings} = svgEditor;
let
math,
@@ -183,7 +182,7 @@ export default {
try {
// eslint-disable-next-line node/no-unsupported-features/es-syntax
await import(mathjaxSrcSecure);
await import('./mathjax/MathJax.min.js'); // ?config=TeX-AMS-MML_SVG.js');
// When MathJax is loaded get the div where the math will be rendered.
MathJax.Hub.queue.Push(function () {
math = MathJax.Hub.getAllJax('#mathjax_creator')[0];