fix: typo

This commit is contained in:
ZiuChen 2022-09-20 18:22:43 +08:00
parent f6732f0147
commit 4dd5888a7f
2 changed files with 3 additions and 3 deletions

View File

@ -12,7 +12,7 @@ class ClipboardEventListener extends EventEmitter {
startListening() {
const { platform } = process;
if (platform === 'win32') {
this.child = execFile(path.join(__dirname, 'platform/clipboard-event-handler-mac'));
this.child = execFile(path.join(__dirname, 'platform/clipboard-event-handler-win32.exe'));
}
else if (platform === 'linux') {
// linux: cant execFile without chmod, and cant chmod in app.asar

View File

@ -221,8 +221,8 @@ export default function initPlugin() {
utools.outPlugin()
}
listener
.on('close', callBack())
.on('exit', callBack())
.on('close', callBack)
.on('exit', callBack)
.on('error', (error) => {
utools.showNotification('剪贴板监听出错' + error)
utools.outPlugin()