mirror of
https://github.com/voideditor/void
synced 2026-05-24 09:58:23 +00:00
window
This commit is contained in:
parent
9edca589a0
commit
a6f1b1e0ad
1 changed files with 4 additions and 4 deletions
|
|
@ -80,13 +80,13 @@ class VoidUpdateWorkbenchContribution extends Disposable implements IWorkbenchCo
|
|||
}
|
||||
|
||||
// check once 5 seconds after mount
|
||||
|
||||
const initId = setTimeout(() => autoCheck(), 5 * 1000)
|
||||
this._register({ dispose: () => clearTimeout(initId) })
|
||||
|
||||
// check every 3 hours
|
||||
const { window } = dom.getActiveWindow()
|
||||
|
||||
const initId = window.setTimeout(() => autoCheck(), 5 * 1000)
|
||||
this._register({ dispose: () => window.clearTimeout(initId) })
|
||||
|
||||
|
||||
const intervalId = window.setInterval(() => autoCheck(), 3 * 60 * 60 * 1000) // every 3 hrs
|
||||
this._register({ dispose: () => window.clearInterval(intervalId) })
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue