1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-08-26 17:54:52 +02:00
This commit is contained in:
Pomax
2020-06-27 10:48:17 -07:00
parent 5e0e6f5c31
commit d4536d47ae

View File

@@ -38,7 +38,7 @@ var options = {
// And only generate if the file doesn't already exist, of course.
if (!fs.existsSync(destination)) {
var cmdarg = new Buffer(latex).toString("base64");
var cmdarg = Buffer.from(latex).toString("base64");
var cmd = "npm run latex -- --hash " + hash + " --base64 " + cmdarg;
console.log(" generating " + hash + ".svg");
execSync(cmd, { stdio: 'inherit' });