mirror of
https://github.com/Pomax/BezierInfo-2.git
synced 2025-08-26 17:54:52 +02:00
buffer
This commit is contained in:
@@ -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' });
|
||||
|
Reference in New Issue
Block a user