Skip to content

Commit

Permalink
Easy piecy in the end
Browse files Browse the repository at this point in the history
  • Loading branch information
rikhuijzer committed Oct 22, 2023
1 parent 7c63ebc commit ec61935
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/build.jl
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ end

function _add_extra_preamble!(session::ServerSession)
current = session.options.evaluation.workspace_custom_startup_expr
config = CONFIG_PLUTORUNNER
config = string(CONFIG_PLUTORUNNER)::String
# Avoids warning message to show up multiple every time
# https://github.com/rikhuijzer/PlutoStaticHTML.jl/pull/172.
if current !== nothing
Expand Down
5 changes: 3 additions & 2 deletions src/mimeoverride.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
const CONFIG_PLUTORUNNER = string(quote
# Keep this a quote because it's used in `eval` below.
const CONFIG_PLUTORUNNER = quote
PlutoRunner.is_mime_enabled(::MIME"application/vnd.pluto.tree+object") = false
PlutoRunner.PRETTY_STACKTRACES[] = false
end)::String
end

# These overrides are used when `use_distributed=false`.
eval(CONFIG_PLUTORUNNER)

0 comments on commit ec61935

Please sign in to comment.