Skip to content

Commit

Permalink
Merge branch 'master' of github.com:logseq/logseq
Browse files Browse the repository at this point in the history
  • Loading branch information
tiensonqin committed Jan 29, 2021
2 parents 516dc0a + dc4e943 commit b7b02b2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion resources/js/preload.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,11 @@ contextBridge.exposeInMainWorld('apis', {
},

showItemInFolder (fullpath) {
shell.showItemInFolder(fullpath)
if (IS_WIN32) {
shell.openPath(path.dirname(fullpath))
} else {
shell.showItemInFolder(fullpath)
}
},

/**
Expand Down

0 comments on commit b7b02b2

Please sign in to comment.