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 = "shinyMobile",
 )
 tagList(tag, pwacompat_deps)
}
    

Try the shinyMobile package in your browser

Any scripts or data that you put into this service are public.

shinyMobile documentation built on Nov. 25, 2022, 5:05 p.m.