Skip to content

Commit

Permalink
chore: varnames
Browse files Browse the repository at this point in the history
  • Loading branch information
gadenbuie committed Jan 9, 2025
1 parent 6b17410 commit 5d11b7c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions R/precompiled.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@
# theme so we can compare with the user theme. We only use the precompiled theme
# if the two are identical. Themes are cached after comparison.
precompiled_bs_theme_hash <- function(version) {
theme <- get0(version, .precompiled_css_themes)
theme_hash <- get0(version, .precompiled_css_themes)

if (is.null(theme)) {
theme <- rlang::hash(bs_theme(version = version, brand = FALSE))
assign(version, theme, envir = .precompiled_css_themes)
theme_hash <- rlang::hash(bs_theme(version = version, brand = FALSE))
assign(version, theme_hash, envir = .precompiled_css_themes)
}

return(theme)
return(theme_hash)
}

#' Get the path to a precompiled CSS file
Expand Down

0 comments on commit 5d11b7c

Please sign in to comment.