Skip to content

Commit

Permalink
fix attributes with binary asset (e.g. DOM.img) (#211)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonDanisch authored Jan 11, 2024
1 parent 5ec1ab4 commit 358df58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rendering/hyperscript_integration.jl
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ function attribute_render(session::Session, parent, attribute::String, jss::JSCo
return ""
end

function attribute_render(session::Session, parent, attribute::String, asset::Union{Link, Asset})
function attribute_render(session::Session, parent, ::String, asset::AbstractAsset)
if parent isa Hyperscript.Node{Hyperscript.CSS}
# css seems to require an url object
return "url($(url(session, asset)))"
Expand Down

0 comments on commit 358df58

Please sign in to comment.