From 388959a1fedf8a14b472749b30a23a789cc71578 Mon Sep 17 00:00:00 2001 From: Minh141120 Date: Thu, 14 Aug 2025 12:39:48 +0700 Subject: [PATCH] chore: gate check auto updater --- web-app/src/hooks/useAppUpdater.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 {