mirror of
https://github.com/logseq/logseq.git
synced 2026-05-05 19:36:35 +00:00
fix(import): remove asset byte-array usage to prevent OOM
This commit also combine read-asset and copy-asset to read-and-copy-asset
This commit is contained in:
committed by
Gabriel Horner
parent
b4d3fb4284
commit
971cec54bc
@@ -16,6 +16,11 @@
|
||||
[promesa.core :as p])
|
||||
(:import [missionary Cancelled]))
|
||||
|
||||
(defn exceed-limit-size?
|
||||
"Asset size no more than 100M"
|
||||
[^js file]
|
||||
(> (.-size file) (* 100 1024 1024)))
|
||||
|
||||
(defn alias-enabled?
|
||||
[]
|
||||
(and (util/electron?)
|
||||
|
||||
Reference in New Issue
Block a user