diff --git a/public/preload.js b/public/preload.js index bf4d826..e8ad4ba 100644 --- a/public/preload.js +++ b/public/preload.js @@ -254,8 +254,5 @@ window.copy = copy window.paste = paste window.remove = remove window.createFile = createFile -window.openFile = utools.shellOpenPath -window.openFileFolder = utools.shellShowItemInFolder -window.getIcon = utools.getFileIcon window.focus = focus window.toTop = toTop diff --git a/src/cpns/FileList.vue b/src/cpns/FileList.vue index d04b728..5816fb0 100644 --- a/src/cpns/FileList.vue +++ b/src/cpns/FileList.vue @@ -19,8 +19,8 @@ const props = defineProps({ required: true } }) -const openFile = (path) => window.openFile(path) -const getIcon = (path) => window.getIcon(path) +const openFile = (path) => utools.shellOpenPath(path) +const getIcon = (path) => utools.getFileIcon(path)