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
#' @keywords internal
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 = "shinyMobile",
 )
 tagList(tag, pwacompat_deps)
}
RinteRface/shinyF7 documentation built on March 3, 2024, 7:29 a.m.