From d1fb4f476cfd32ac1c046394e34de6e3470fa04f Mon Sep 17 00:00:00 2001 From: George Stagg Date: Tue, 1 Oct 2024 14:45:30 +0100 Subject: [PATCH] Use `Module.webr.channel` in pager and viewer --- packages/webr/R/pager.R | 2 +- packages/webr/R/viewer.R | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/webr/R/pager.R b/packages/webr/R/pager.R index 2c5d855c..65ac9a62 100644 --- a/packages/webr/R/pager.R +++ b/packages/webr/R/pager.R @@ -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], "',", diff --git a/packages/webr/R/viewer.R b/packages/webr/R/viewer.R index 69d67629..7622e113 100644 --- a/packages/webr/R/viewer.R +++ b/packages/webr/R/viewer.R @@ -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, "' },", "});"