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