Browse Source

fix(dev): missed script

charlie 4 years ago
parent
commit
7ded536b5c
2 changed files with 2 additions and 2 deletions
  1. 1 1
      public/index.html
  2. 1 1
      src/main/frontend/components/right_sidebar.cljs

+ 1 - 1
public/index.html

@@ -13,4 +13,4 @@ const portal = new MagicPortal(worker);
   const workerThread = await portal.get('workerThread');
   window.workerThread = workerThread;
 })();
-</script><script src="/static/js/main.js"></script><script src="/static/js/highlight.min.js"><script src="/static/js/interact.min.js"></script></body></html>
+</script><script src="/static/js/main.js"></script><script src="/static/js/highlight.min.js"></script><script src="/static/js/interact.min.js"></script></body></html>

+ 1 - 1
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