mirror of
https://github.com/rubickCenter/rubick
synced 2025-06-15 07:46:56 +08:00
ref: getPath 改成同步
This commit is contained in:
parent
fbecd3bc71
commit
b51da4835d
@ -105,16 +105,7 @@ window.utools = window.rubick = {
|
||||
},
|
||||
|
||||
getPath(name) {
|
||||
ipcRenderer.send('msg-trigger', {
|
||||
type: 'getPath',
|
||||
name,
|
||||
});
|
||||
return new Promise((resolve, reject) => {
|
||||
ipcRenderer.on(`msg-back-getPath`, (e, result) => {
|
||||
console.log(result)
|
||||
result ? resolve(result) : reject();
|
||||
});
|
||||
})
|
||||
return remote.app.getPath(name);
|
||||
},
|
||||
|
||||
showNotification(body, clickFeatureCode) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user