From 5fd5144b4bfdb4a9066512bdbfd6c16fc6127738 Mon Sep 17 00:00:00 2001 From: fofolee Date: Sun, 5 Apr 2020 14:12:52 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E8=B0=83=E7=94=A8zeal?= =?UTF-8?q?=E5=92=8Cdash=E6=97=B6=E5=A4=B1=E8=B4=A5=E7=9A=84=E6=8F=90?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- preload.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/preload.js b/preload.js index 0ec1eb50..bba27f9e 100644 --- a/preload.js +++ b/preload.js @@ -53,9 +53,9 @@ readDir = (path,callback) => { } 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) => { - err && console.log(stderr); + err && utools.showNotification(stderr, clickFeatureCode = null, silent = true); }); }