From 1958ecdb3f4d34248ee95fbbf4c2599a60366640 Mon Sep 17 00:00:00 2001 From: Kimo Knowles Date: Thu, 8 Feb 2024 00:18:00 +0100 Subject: [PATCH] Call shadow-root with the correct args Fixes #411 --- src/day8/re_frame_10x/navigation/views.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/day8/re_frame_10x/navigation/views.cljs b/src/day8/re_frame_10x/navigation/views.cljs index faef1957..32b22b36 100644 --- a/src/day8/re_frame_10x/navigation/views.cljs +++ b/src/day8/re_frame_10x/navigation/views.cljs @@ -392,7 +392,7 @@ ;; When programming here, we need to be careful about which document and window ;; we are operating on, and keep in mind that the window can close without going ;; through standard react lifecycle, so we hook the beforeunload event. - (let [shadow-root (tools.shadow-dom/shadow-root popup-document "--re-frame-10x--" (inline-resource "day8/re_frame_10x/style.css")) + (let [shadow-root (tools.shadow-dom/shadow-root popup-document "--re-frame-10x--") spade-container (spade.dom/create-container shadow-root) resize-update-scheduled? (atom false) handle-window-resize (fn [_]