Skip to content

Commit

Permalink
Use Module.webr.channel in pager and viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
georgestagg committed Oct 1, 2024
1 parent 9cc2bc6 commit d1fb4f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/webr/R/pager.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pager_install <- function() {
options(
pager = function(files, header, title, delete.file) {
webr::eval_js(paste0(
"chan.write({",
"Module.webr.channel.write({",
" type: 'pager',",
" data: {",
" path: '", files[1], "',",
Expand Down
2 changes: 1 addition & 1 deletion packages/webr/R/viewer.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ viewer_install <- function() {
options(
viewer = function(url, ...) {
webr::eval_js(paste0(
"chan.write({",
"Module.webr.channel.write({",
" type: 'browse',",
" data: { url: '", url, "' },",
"});"
Expand Down

0 comments on commit d1fb4f4

Please sign in to comment.