Update packages/dashboard/app/versionCheck.ts
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
@@ -240,7 +240,8 @@ export async function checkVersion(trigger: VersionCheckTrigger = "initial"): Pr
|
||||
} catch {
|
||||
// ignore
|
||||
}
|
||||
if (autoReloadEnabled) {
|
||||
const alreadyAttempted = Boolean((() => { try { return sessionStorage.getItem(RELOAD_FLAG); } catch { return null; } })());
|
||||
if (autoReloadEnabled && !alreadyAttempted) {
|
||||
setReloadedRemoteVersion(remote);
|
||||
}
|
||||
reloadOnce(`build version changed: ${__BUILD_VERSION__} -> ${remote}`);
|
||||
|
||||
Reference in New Issue
Block a user