mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-06-06 21:44:03 +08:00
调整调用zeal和dash时失败的提示
This commit is contained in:
parent
2d46e3a9a9
commit
5fd5144b4b
@ -53,9 +53,9 @@ readDir = (path,callback) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dash = query => {
|
dash = query => {
|
||||||
let cmd = process.platform == 'win32' ? `start dash-plugin://query=${query}` : `open dash://${query}`
|
let cmd = process.platform == 'win32' ? `start dash-plugin://query=${query}` : `open dash://${query}`;
|
||||||
exec(cmd, (err, stdout, stderr) => {
|
exec(cmd, (err, stdout, stderr) => {
|
||||||
err && console.log(stderr);
|
err && utools.showNotification(stderr, clickFeatureCode = null, silent = true);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user