Skip to content

Commit

Permalink
devmode
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewpareles committed Jan 20, 2025
1 parent 8c443ab commit 1b4943f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/vs/platform/void/electron-main/voidUpdateMainService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1b4943f

Please sign in to comment.