mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-07-13 00:21:25 +08:00
✨ Feature(custom): optimize i18n and platform funcs
This commit is contained in:
@@ -438,7 +438,7 @@ async function getBucketList () {
|
||||
|
||||
function transPathToUnix (filePath: string | undefined) {
|
||||
if (!filePath) return ''
|
||||
return window.electron.sendRpcSync(IRPCActionType.GET_PLATFORM) === 'win32'
|
||||
return window.electron.platform === 'win32'
|
||||
? filePath
|
||||
.split(window.node.path.sep)
|
||||
.join(window.node.path.posix.sep)
|
||||
|
||||
Reference in New Issue
Block a user