Merge branch 'master' of github.com:logseq/logseq

pull/1368/head
Tienson Qin 2021-02-24 15:45:15 +08:00
commit 4d3e9f81ce
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