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