mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-05-22 00:30:33 +08:00
@@ -55,6 +55,7 @@ class RemoteNoticeHandler {
|
|||||||
method: 'get',
|
method: 'get',
|
||||||
url: REMOTE_NOTICE_URL,
|
url: REMOTE_NOTICE_URL,
|
||||||
responseType: 'json',
|
responseType: 'json',
|
||||||
|
timeout: 5000,
|
||||||
}).then(res => res.data)) as IRemoteNotice
|
}).then(res => res.data)) as IRemoteNotice
|
||||||
return noticeInfo
|
return noticeInfo
|
||||||
} catch {
|
} catch {
|
||||||
|
|||||||
@@ -169,8 +169,12 @@ class LifeCycle {
|
|||||||
notice.show()
|
notice.show()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
await remoteNoticeHandler.init()
|
remoteNoticeHandler
|
||||||
remoteNoticeHandler.triggerHook(IRemoteNoticeTriggerHook.APP_START)
|
.init()
|
||||||
|
.then(() => {
|
||||||
|
remoteNoticeHandler.triggerHook(IRemoteNoticeTriggerHook.APP_START)
|
||||||
|
})
|
||||||
|
.catch(() => {})
|
||||||
if (startMode === ISartMode.MINI && process.platform !== 'darwin') {
|
if (startMode === ISartMode.MINI && process.platform !== 'darwin') {
|
||||||
windowManager.create(IWindowList.MINI_WINDOW)
|
windowManager.create(IWindowList.MINI_WINDOW)
|
||||||
const miniWindow = windowManager.get(IWindowList.MINI_WINDOW)
|
const miniWindow = windowManager.get(IWindowList.MINI_WINDOW)
|
||||||
|
|||||||
Reference in New Issue
Block a user