mirror of
https://github.com/ZiuChen/ClipboardManager.git
synced 2025-06-07 22:04:06 +08:00
fix: 移除多余try-catch
This commit is contained in:
parent
e3ee1ca230
commit
ba5ff99dea
@ -223,13 +223,9 @@ export default function initPlugin() {
|
||||
.on('error', (error) => errorHandler(error))
|
||||
}
|
||||
|
||||
try {
|
||||
// 首次启动插件 即开启监听
|
||||
registerClipEvent(listener)
|
||||
listener.startListening()
|
||||
} catch (error) {
|
||||
utools.showNotification(error)
|
||||
}
|
||||
// 首次启动插件 即开启监听
|
||||
registerClipEvent(listener)
|
||||
listener.startListening()
|
||||
|
||||
utools.onPluginEnter(() => {
|
||||
if (!listener.listening) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user