R/pwacompat-dependencies.R

Defines functions add_pwacompat_deps

Documented in add_pwacompat_deps

#' pwacompat dependencies utils
#'
#' @description This function attaches pwacompat. dependencies to the given tag
#'
#' @param tag Element to attach the dependencies.
#'
#' @importFrom htmltools tagList htmlDependency
#' @export
add_pwacompat_deps <- function(tag) {
  pwacompat_deps <- htmlDependency(
    name = "pwacompat",
    version = "2.0.17",
    src = c(file = "pwacompat-2.0.17"),
    script = "js/pwacompat.min.js",
    package = "kaspbeerypi",
  )
  tagList(tag, pwacompat_deps)
}
KasperSkytte/KaspbeeryPi documentation built on Aug. 5, 2023, 2:42 p.m.