mirror of
https://github.com/ZiuChen/ClipboardManager.git
synced 2025-06-09 15:34:04 +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))
|
.on('error', (error) => errorHandler(error))
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
|
||||||
// 首次启动插件 即开启监听
|
// 首次启动插件 即开启监听
|
||||||
registerClipEvent(listener)
|
registerClipEvent(listener)
|
||||||
listener.startListening()
|
listener.startListening()
|
||||||
} catch (error) {
|
|
||||||
utools.showNotification(error)
|
|
||||||
}
|
|
||||||
|
|
||||||
utools.onPluginEnter(() => {
|
utools.onPluginEnter(() => {
|
||||||
if (!listener.listening) {
|
if (!listener.listening) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user