fix: 区分Mac平台 采用旧的剪贴板监听方式

This commit is contained in:
ZiuChen
2022-09-21 16:33:02 +08:00
parent d5332e69af
commit b4dc9f803b
7 changed files with 75 additions and 27 deletions

View File

@@ -34,8 +34,6 @@ class ClipboardEventListener extends EventEmitter {
this.emit('error', error)
}
this.child = execFile(target)
} else if (platform === 'darwin') {
this.child = execFile(path.join(__dirname, 'platform/clipboard-event-handler-mac'))
} else {
throw 'Not yet supported'
}