Skip to content

Commit 245c9d0

Browse files
committed
Update show.jl
1 parent c93b7ca commit 245c9d0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/show.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,21 +49,21 @@ function _write_json(vspec::SGPlots)
4949
end
5050

5151
function _convert_to_svg(vspec; s = 1)
52-
nodejscmd = Vega.NodeJS_18_jll.node()
52+
nodejscmd = Vega.NodeJS.nodejs_cmd()
5353
node_modules = joinpath(Vega.vegalite_app_path(), "node_modules/vega-cli/bin/vg2svg")
5454
ftmp = _write_json(vspec)
5555
res = read(Cmd(`$nodejscmd $node_modules -s $s $ftmp`), String)
5656
res
5757
end
5858
function _convert_to_png(vspec; s = 1)
59-
nodejscmd = Vega.NodeJS_18_jll.node()
59+
nodejscmd = Vega.NodeJS.nodejs_cmd()
6060
node_modules = joinpath(Vega.vegalite_app_path(), "node_modules/vega-cli/bin/vg2png")
6161
ftmp = _write_json(vspec)
6262
res = read(Cmd(`$nodejscmd $node_modules -s $s $ftmp`), String)
6363
res
6464
end
6565
function _convert_to_pdf(vspec; s = 1)
66-
nodejscmd = Vega.NodeJS_18_jll.node()
66+
nodejscmd = Vega.NodeJS.nodejs_cmd()
6767
node_modules = joinpath(Vega.vegalite_app_path(), "node_modules/vega-cli/bin/vg2pdf")
6868
ftmp = _write_json(vspec)
6969
res = read(Cmd(`$nodejscmd $node_modules -s $s $ftmp`), String)

0 commit comments

Comments
 (0)