Skip to content

Commit 9549d84

Browse files
committed
avoid 1.7-only syntax
1 parent dce2a12 commit 9549d84

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/PlotlyLight.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ end
8080
Base.display(::Cobweb.CobwebDisplay, o::Plot) = display(Cobweb.CobwebDisplay(), Cobweb.Page(o))
8181

8282
function Base.show(io::IO, M::MIME"text/html", o::Plot)
83-
(; class, style, parent_class, parent_style) = Defaults
83+
class, style = Defaults.class, Defaults.style
84+
parent_class, parent_style = Defaults.parent_class, Defaults.parent_style
8485
parent_style = if get(io, :is_pluto, false)
8586
s = replace(parent_style[], r"height.*;" => "")
8687
"height: 400px;" * s

0 commit comments

Comments
 (0)