1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-08-29 19:20:39 +02:00

buffer warning fix

This commit is contained in:
Pomax
2020-06-27 10:38:13 -07:00
parent 8ce66e8c9d
commit 4d7af18867

View File

@@ -34,7 +34,7 @@ if (latex === -1) {
process.exit(1); process.exit(1);
} }
base64 = process.argv[base64+1]; base64 = process.argv[base64+1];
latex = new Buffer(base64, "base64").toString(); latex = Buffer.from(base64, "base64").toString();
} else { } else {
// get the --latex value // get the --latex value
var args = Array.from(process.argv); var args = Array.from(process.argv);