You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openmeetings.apache.org by so...@apache.org on 2022/05/20 15:17:43 UTC

[openmeetings] branch master updated: [OPENMEETINGS-2732] eval in MathJax is hacked

This is an automated email from the ASF dual-hosted git repository.

solomax pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openmeetings.git


The following commit(s) were added to refs/heads/master by this push:
     new 1a02d13ab [OPENMEETINGS-2732] eval in MathJax is hacked
1a02d13ab is described below

commit 1a02d13abecaff5bf0f7b559d1b6dde2a9279853
Author: Maxim Solodovnik <so...@gmail.com>
AuthorDate: Fri May 20 22:17:34 2022 +0700

    [OPENMEETINGS-2732] eval in MathJax is hacked
---
 openmeetings-web/src/main/front/wb/package.json             | 2 +-
 openmeetings-web/src/main/front/wb/src/wb-tool-stat-math.js | 3 +++
 pom.xml                                                     | 2 +-
 3 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/openmeetings-web/src/main/front/wb/package.json b/openmeetings-web/src/main/front/wb/package.json
index e84874c63..805ab69d2 100644
--- a/openmeetings-web/src/main/front/wb/package.json
+++ b/openmeetings-web/src/main/front/wb/package.json
@@ -19,6 +19,6 @@
   },
   "dependencies": {
     "fabric": "^5.2.1",
-    "mathjax-full": "^3.2.0"
+    "mathjax-full": "^3.2.1"
   }
 }
diff --git a/openmeetings-web/src/main/front/wb/src/wb-tool-stat-math.js b/openmeetings-web/src/main/front/wb/src/wb-tool-stat-math.js
index 42aaee415..fe50f6e2b 100644
--- a/openmeetings-web/src/main/front/wb/src/wb-tool-stat-math.js
+++ b/openmeetings-web/src/main/front/wb/src/wb-tool-stat-math.js
@@ -1,6 +1,9 @@
 /* Licensed under the Apache License, Version 2.0 (the "License") http://www.apache.org/licenses/LICENSE-2.0 */
 require('fabric');
 
+// HACK!!!!! to avoid eval to determine MathJax version
+window.PACKAGE_VERSION = '3.2.1';
+
 // Based on this example: https://github.com/mathjax/MathJax-demos-node/blob/master/preload/tex2svg
 const packages = 'base, autoload, require, ams, newcommand, noundefined'.split(/\s*,\s*/);
 
diff --git a/pom.xml b/pom.xml
index 8c8309560..4587a134c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1453,7 +1453,7 @@
 					<artifactId>frontend-maven-plugin</artifactId>
 					<version>${frontend-maven-plugin.version}</version>
 					<configuration>
-						<nodeVersion>v14.15.3</nodeVersion>
+						<nodeVersion>v14.19.1</nodeVersion>
 						<installDirectory>${project.build.directory}</installDirectory>
 					</configuration>
 				</plugin>