Skip to content

Commit

Permalink
invert logic
Browse files Browse the repository at this point in the history
  • Loading branch information
BeastyBlacksmith committed Feb 23, 2024
1 parent 7481ad7 commit ca2dfc1
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/PlotlyJS.jl
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,10 @@ function __init__()
@warn("Warnings were generated during the last build of PlotlyJS: please check the build log at $_build_log")
end

kaleido_task = PlotlyKaleido.start()
if ccall(:jl_generating_output, Cint, ()) != 1
# ensure precompilation of packages depending on PlotlyJS finishes
PlotlyKaleido.start()
end

if !isfile(_js_path)
@info("plotly.js javascript libary not found -- downloading now")
Expand Down Expand Up @@ -145,11 +148,6 @@ function __init__()
end
end
end

if ccall(:jl_generating_output, Cint, ()) == 1
# ensure precompilation of packages depending on PlotlyJS finishes
PlotlyKaleido.kill_kaleido()
end
end

# for methods that update the layout, first apply to the plot, then let plotly.js
Expand Down

0 comments on commit ca2dfc1

Please sign in to comment.