diff --git a/src/animation.jl b/src/animation.jl index e0b2f5ab..e8017ff1 100644 --- a/src/animation.jl +++ b/src/animation.jl @@ -93,13 +93,13 @@ end -# write out html to view the gif... note the rand call which is a hack so the image doesn't get cached +# write out html to view the gif function Base.show(io::IO, ::MIME"text/html", agif::AnimatedGif) ext = file_extension(agif.filename) write(io, if ext == "gif" - "\" />" + "" elseif ext in ("mov", "mp4") - "" + "" else error("Cannot show animation with extension $ext: $agif") end)