mirror of https://github.com/logseq/logseq
parent
1987c4149a
commit
fe99ca703f
|
@ -72,7 +72,7 @@ contextBridge.exposeInMainWorld('apis', {
|
|||
|
||||
showItemInFolder (fullpath) {
|
||||
if (IS_WIN32) {
|
||||
shell.openPath(path.dirname(fullpath))
|
||||
shell.openPath(path.dirname(fullpath).replaceAll("/", "\\"))
|
||||
} else {
|
||||
shell.showItemInFolder(fullpath)
|
||||
}
|
||||
|
|
|
@ -487,7 +487,7 @@
|
|||
(defn safe-path-join [prefix & paths]
|
||||
(let [path (apply node-path.join (cons prefix paths))]
|
||||
(if (and (electron?) (gstring/caseInsensitiveStartsWith path "file://"))
|
||||
(subs path 7)
|
||||
(js/decodeURIComponent (subs path 7))
|
||||
path))))
|
||||
|
||||
(defn trim-safe
|
||||
|
|
Loading…
Reference in New Issue