Skip to content

Commit acba7d1

Browse files
authored
Update PlotlyJS.jl
1 parent 2dd3ef3 commit acba7d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PlotlyJS.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ function __init__()
130130
insert!(Base.Multimedia.displays, findlast(x -> x isa REPL.REPLDisplay, Base.Multimedia.displays) + 1, PlotlyJSDisplay())
131131
end)
132132

133-
@require JSON2 = "2535ab7d-5cd8-5a07-80ac-9b1792aadce3" JSON2.write(io::IO, p::SyncPlot) = JSON.print(io, p)
133+
@require JSON2 = "2535ab7d-5cd8-5a07-80ac-9b1792aadce3" JSON2.write(io::IO, p::SyncPlot) = JSON2.write(io, p.plot)
134134
@require JSON3 = "0f8b85d8-7281-11e9-16c2-39a750bddbf1" begin
135135
JSON3.write(io::IO, p::SyncPlot) = JSON.print(io, p.plot)
136136
JSON3.write(p::SyncPlot) = JSON.json(p.plot)

0 commit comments

Comments
 (0)