Skip to content

Commit

Permalink
Update MIME type for show (#1322)
Browse files Browse the repository at this point in the history
* Update MIME type for show

* Update with union or both previous and new MIME type
  • Loading branch information
jjerphan authored and tlnagy committed Oct 25, 2019
1 parent ce69a64 commit 56c0112
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Gadfly.jl
Original file line number Diff line number Diff line change
Expand Up @@ -956,7 +956,8 @@ function show(io::IO, m::MIME"image/svg+xml", p::Plot)
show(io, m, svg)
end

function show(io::IO, m::MIME"application/juno+plotpane", p::Plot)
function show(io::IO,m::Union{MIME"application/juno+plotpane",
MIME"application/prs.juno.plotpane+html"}, p::Plot)
buf = IOBuffer()
svg = SVGJS(buf, Compose.default_graphic_width,
Compose.default_graphic_height, false)
Expand Down

0 comments on commit 56c0112

Please sign in to comment.