mirror of
https://github.com/logseq/logseq.git
synced 2026-06-01 19:01:22 +00:00
Merge branch 'master' of github.com:logseq/logseq-internal into master
This commit is contained in:
@@ -44,8 +44,8 @@
|
||||
[file-path]
|
||||
(when-let [repo (state/get-current-repo)]
|
||||
(when-let [content (db/get-file repo file-path)]
|
||||
(let [data (js/Blob. (array content)
|
||||
(clj->js {:type "text/plain"}))]
|
||||
(let [data (js/Blob. ["\ufeff" (array content)] ; prepend BOM
|
||||
(clj->js {:type "text/plain;charset=utf-8,"}))]
|
||||
(let [anchor (gdom/getElement "download")
|
||||
url (js/window.URL.createObjectURL data)]
|
||||
(.setAttribute anchor "href" url)
|
||||
|
||||
Reference in New Issue
Block a user