From 4404045dfe0abcf31e39ecf24634708db8039267 Mon Sep 17 00:00:00 2001 From: James J Balamuta Date: Wed, 20 Sep 2023 22:29:05 -0700 Subject: [PATCH] shinylive fix? --- .Rhistory | 0 R-shinylive-demo.qmd | 2 ++ shinylive-sw.js | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) delete mode 100644 .Rhistory diff --git a/.Rhistory b/.Rhistory deleted file mode 100644 index e69de29..0000000 diff --git a/R-shinylive-demo.qmd b/R-shinylive-demo.qmd index 82d577d..4a67a61 100644 --- a/R-shinylive-demo.qmd +++ b/R-shinylive-demo.qmd @@ -4,6 +4,8 @@ format: html: grid: body-width: 1300px + resources: + - shinylive-sw.js filters: - shinylive --- diff --git a/shinylive-sw.js b/shinylive-sw.js index 4459218..86b23c5 100644 --- a/shinylive-sw.js +++ b/shinylive-sw.js @@ -16,7 +16,7 @@ function sleep(ms) { return new Promise((resolve) => setTimeout(resolve, ms)); } function dirname(path) { - if (path === "/" || path === "") + if (path === "/" || path === "") { return ""; } return path.replace(/[/]?[^/]+[/]?$/, "");