From 5b5f6c9274f2238c3a4c5909fb5ab04248ee2913 Mon Sep 17 00:00:00 2001 From: charlie Date: Wed, 24 Feb 2021 14:10:49 +0800 Subject: [PATCH] fix(dev): missed script --- public/index.html | 2 +- src/main/frontend/components/right_sidebar.cljs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/index.html b/public/index.html index 30f54a2df..25dda2f30 100644 --- a/public/index.html +++ b/public/index.html @@ -13,4 +13,4 @@ const portal = new MagicPortal(worker); const workerThread = await portal.get('workerThread'); window.workerThread = workerThread; })(); - + diff --git a/src/main/frontend/components/right_sidebar.cljs b/src/main/frontend/components/right_sidebar.cljs index 3ec928c3c..e6839aff6 100644 --- a/src/main/frontend/components/right_sidebar.cljs +++ b/src/main/frontend/components/right_sidebar.cljs @@ -213,7 +213,7 @@ (let [el-ref (rum/use-ref nil)] (rum/use-effect! (fn [] - (when-let [el (and (fn? js/interact) (rum/deref el-ref))] + (when-let [el (and (fn? js/window.interact) (rum/deref el-ref))] (-> (js/interact el) (.draggable (bean/->js