Skip to content

Commit 9ea5371

Browse files
use cdnjs and fix bug when offline=FALSE
1 parent b5739c9 commit 9ea5371

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

R/dependencies.R

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ html_dependency_react <- function(offline=TRUE){
3535
)
3636

3737
if(!offline) {
38-
hd$src = c(href="https://fb.me")
38+
hd$src <- list(href=sprintf(
39+
"//cdnjs.cloudflare.com/ajax/libs/react/%s",
40+
react_version()
41+
))
3942
}
4043

4144
hd

0 commit comments

Comments
 (0)