Skip to content

armgit / jan

Public Imported from GitHub
0

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.

chore: gate check auto updater

Minh141120388959a1fedf
diff --git a/web-app/src/hooks/useAppUpdater.ts b/web-app/src/hooks/useAppUpdater.ts
index fb24c6600..303cb43e3 100644
--- a/web-app/src/hooks/useAppUpdater.ts
+++ b/web-app/src/hooks/useAppUpdater.ts
@@ -53,6 +53,11 @@ export const useAppUpdater = () => {
const checkForUpdate = useCallback(
async (resetRemindMeLater = false) => {
+ if (AUTO_UPDATER_DISABLED) {
+ console.log('Auto updater is disabled')
+ return
+ }
+
try {
// Reset remindMeLater if requested (e.g., when called from settings)
if (resetRemindMeLater) {
@@ -148,6 +153,11 @@ export const useAppUpdater = () => {
)
const downloadAndInstallUpdate = useCallback(async () => {
+ if (AUTO_UPDATER_DISABLED) {
+ console.log('Auto updater is disabled')
+ return
+ }
+
if (!updateState.updateInfo) return
try {