mirror of
https://github.com/voideditor/void
synced 2026-05-24 09:58:23 +00:00
devmode
This commit is contained in:
parent
8c443ab780
commit
1b4943f39e
1 changed files with 3 additions and 3 deletions
|
|
@ -24,13 +24,13 @@ export class VoidMainUpdateService extends Disposable implements IVoidUpdateServ
|
|||
|
||||
async check() {
|
||||
const isDevMode = !this._envMainService.isBuilt // found in abstractUpdateService.ts
|
||||
|
||||
if (isDevMode) {
|
||||
console.log('Checking for updates in dev mode')
|
||||
// return { message: `` }
|
||||
return { hasUpdate: false } as const
|
||||
}
|
||||
|
||||
try {
|
||||
const res = await fetch(`https://updates.voideditor.dev/api/v0/${this._productService.commit ?? '6e1f8a08b39b9fcc2810356a7e69e65d6e61d13f'}`)
|
||||
const res = await fetch(`https://updates.voideditor.dev/api/v0/${this._productService.commit}`)
|
||||
const resJSON = await res.json()
|
||||
|
||||
if (!resJSON) return null
|
||||
|
|
|
|||
Loading…
Reference in a new issue