Skip to content

Commit

Permalink
the WS object is created from servr now: yihui/servr@b784562
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui committed Feb 16, 2024
1 parent 9fc0f8c commit 55cf90d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: xaringan
Type: Package
Title: Presentation Ninja
Version: 0.29.1
Version: 0.29.2
Authors@R: c(
person("Yihui", "Xie", role = c("aut", "cre"), email = "[email protected]", comment = c(ORCID = "0000-0003-0645-5666")),
person(given = "Posit Software, PBC", role = c("cph", "fnd")),
Expand Down Expand Up @@ -46,7 +46,7 @@ Depends: R (>= 3.5.0)
Imports:
htmltools,
knitr (>= 1.30),
servr (>= 0.29),
servr (>= 0.29.2),
xfun (>= 0.18),
rmarkdown (>= 2.8)
Suggests: rstudioapi, jsonlite, testit
Expand All @@ -56,3 +56,4 @@ BugReports: https://github.com/yihui/xaringan/issues
VignetteBuilder: knitr
Encoding: UTF-8
RoxygenNote: 7.3.1
Remotes: yihui/servr
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# CHANGES IN xaringan VERSION 0.30

- `inf_mr()` fails to work when the slides URL contains a hash.

# CHANGES IN xaringan VERSION 0.29

Expand Down
3 changes: 1 addition & 2 deletions inst/rmarkdown/templates/xaringan/resources/js/ws-handler.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
((interval, path) => {
const ws = new WebSocket(location.href.replace(/^http/, 'ws').replace(/\/?$/, '/websocket/'));
((interval, path, ws) => {
let flag, focused = false;

window.addEventListener('focus', e => { focused = true; });
Expand Down

0 comments on commit 55cf90d

Please sign in to comment.