mirror of
https://github.com/logseq/logseq.git
synced 2026-04-25 14:44:53 +00:00
fix(plugin): node file creation for the specific plugin settings
This commit is contained in:
@@ -628,9 +628,7 @@
|
||||
dotroot (get-ls-dotdir-root)
|
||||
filepath (util/node-path.join dotroot dirname (str key ".json"))]
|
||||
(if (util/electron?)
|
||||
(p/let [exist? (fs/file-exists? filepath)
|
||||
_ (when-not exist? (fs/mkdir! filepath))
|
||||
_ (fs/create-if-not-exists repo nil filepath (js/JSON.stringify default))
|
||||
(p/let [_ (fs/create-if-not-exists repo nil filepath (js/JSON.stringify default))
|
||||
json (fs/read-file nil filepath)]
|
||||
[filepath (js/JSON.parse json)])
|
||||
(p/let [data (idb/get-item filepath)]
|
||||
|
||||
Reference in New Issue
Block a user