Skip to content

Commit c4657dd

Browse files
committed
Fix preview following change
1 parent 25e014f commit c4657dd

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

R/aaa.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# Using convention in https://github.com/tidyverse/design/issues/126
33
the <- rlang::new_environment(
44
list(
5+
preview_infos = list(),
56
latest_stable = list(date = NULL, infos = NULL),
67
latest_prerelease = list(date = NULL, infos = NULL)
78
),

R/daemon.R

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ run_serve_daemon <- function(
2525
ps_key <- paste0(command, "_ps")
2626
port_key <- paste0(command, "_port")
2727
url_key <- paste0(command, "_url")
28+
29+
quarto <- the$preview_infos
30+
2831
# We don't need to keep previous url
2932
quarto[[url_key]] <- NULL
3033

@@ -171,6 +174,7 @@ run_serve_daemon <- function(
171174
}
172175

173176
stop_serve_daemon <- function(command) {
177+
quarto <- the$preview_infos
174178
ps_key <- paste0(command, "_ps")
175179
if (!is.null(quarto[[ps_key]])) {
176180
if (quarto[[ps_key]]$is_alive()) {

0 commit comments

Comments
 (0)