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 f6258b3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions R/precompiled.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@
# 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)
Expand Down

0 comments on commit f6258b3

Please sign in to comment.