Skip to content

Commit 43b7daa

Browse files
committed
Merge pull request #248 from ropensci/new-offline-directory
update offline filenames
2 parents ce587aa + 60ee671 commit 43b7daa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

R/offline.R

+3-3
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ new_offline <- function(data, layout, height, width, id) {
6767

6868
has_offline <- function() {
6969
off <- Sys.getenv("plotly_offline")
70-
bundles <- c("plotly-matlab-offline-bundle.js",
71-
"plotly-ipython-offline-bundle.js")
70+
bundles <- c("plotly-offline.min.js",
71+
"plotly-offline-nojquery.min.js")
7272
haz <- all(bundles %in% list.files(off))
7373
# if bundles don't exist and a zip does try to unzip
7474
if (!haz) {
@@ -98,7 +98,7 @@ offline_bundle <- function(jq = FALSE) {
9898
haz <- has_offline()
9999
if (!haz) offline_stop()
100100
# ipython already has jQuery, and so does shiny
101-
f <- if (jq) "plotly-matlab-offline-bundle.js" else "plotly-ipython-offline-bundle.js"
101+
f <- if (jq) "plotly-offline.min.js" else "plotly-offline-nojquery.min.js"
102102
file.path(names(haz), f)
103103
}
104104

0 commit comments

Comments
 (0)