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 {