mirror of
https://github.com/ZiuChen/ClipboardManager.git
synced 2025-06-08 06:16:18 +08:00
fix: typo
This commit is contained in:
parent
f6732f0147
commit
4dd5888a7f
2
public/node_modules/clipboard-event/index.js
generated
vendored
2
public/node_modules/clipboard-event/index.js
generated
vendored
@ -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
|
||||
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user