Skip to content

Commit

Permalink
fixup!
Browse files Browse the repository at this point in the history
  • Loading branch information
lunar-debian authored Aug 1, 2020
1 parent e39aacb commit 32173f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/chrome.R
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ chrome_print = function(
input, output = xfun::with_ext(input, format), wait = 2, browser = 'google-chrome',
format = c('pdf', 'png', 'jpeg'), options = list(), selector = 'body',
box_model = c('border', 'content', 'margin', 'padding'), scale = 1, work_dir = tempfile(),
timeout = 30, extra_args = c('--disable-gpu'), verbose = 0, async = FALSE, encoding
timeout = 30, extra_args = c('--disable-gpu'), verbose = 0, async = FALSE, maxMessageSize = 128 * 1024 * 1024, encoding
) {
is_rstudio_knit =
!interactive() && !is.na(Sys.getenv('RSTUDIO', NA)) &&
Expand Down Expand Up @@ -112,7 +112,7 @@ chrome_print = function(

with_temp_loop_maybe({

ws = websocket::WebSocket$new(get_entrypoint(debug_port, verbose), autoConnect = FALSE, maxMessageSize = 256 * 1024 * 1024)
ws = websocket::WebSocket$new(get_entrypoint(debug_port, verbose), autoConnect = FALSE, maxMessageSize)
ws$onClose(kill_chrome)
ws$onError(kill_chrome)
close_ws = function() {
Expand Down

0 comments on commit 32173f7

Please sign in to comment.