fix(dev): missed script

This commit is contained in:
charlie
2021-02-24 14:10:49 +08:00
committed by Tienson Qin
parent de8c521b1e
commit 5b5f6c9274
2 changed files with 2 additions and 2 deletions

View File

@@ -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>

View File

@@ -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