Skip to content

Commit

Permalink
fix plotpane
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonDanisch committed Oct 5, 2024
1 parent d0a0b1e commit d852eab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/connection/websocket.jl
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ function should_cleanup(policy::DefaultCleanupPolicy, session::Session)
return false
end

function allow_soft_close(policy::DefaultCleanupPolicy)
function allow_soft_close(policy::DefaultCleanupPolicy=CLEANUP_POLICY[])
return policy.cleanup_time > 0.0
end

Expand Down
2 changes: 1 addition & 1 deletion src/display.jl
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ end
function Base.show(io::IO, ::MIME"juliavscode/html", app::App)
# If we clean up sessions immediately and disallow reconnect
# We might as well display the app directly!
if CLEANUP_TIME[] == 0.0
if !allow_soft_close()
show(io, MIME"text/html"(), app)
else
session = Session(title=app.title)
Expand Down

0 comments on commit d852eab

Please sign in to comment.