Skip to content

Commit

Permalink
Update Resource.jl downloadbutton
Browse files Browse the repository at this point in the history
  • Loading branch information
fonsp authored Nov 4, 2023
1 parent c34b793 commit e7c716f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Resource.jl
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ DownloadButton(data) = DownloadButton(data, "result")

function Base.show(io::IO, m::MIME"text/html", db::DownloadButton)
mime = mime_fromfilename(db.filename)
data = if db.data isa String || db.data isa AbstractVector{UInt8} || isnothing(mime)
data = if db.data isa Union{AbstractString,AbstractVector{UInt8}} || isnothing(mime)
db.data
else
repr(mime, db.data)
Expand Down

2 comments on commit e7c716f

@fonsp
Copy link
Member Author

@fonsp fonsp commented on e7c716f Nov 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register()

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/94743

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.7.53 -m "<description of version>" e7c716f8dc4b596acf6625eb30eff58971f7c6b9
git push origin v0.7.53

Please sign in to comment.