do not check for updates
This commit is contained in:
parent
7d235386e7
commit
b9da444473
1 changed files with 3 additions and 2 deletions
|
@ -28,6 +28,7 @@ async function waitTilUIIsVisible(): Promise<undefined> {
|
||||||
}
|
}
|
||||||
|
|
||||||
export default async function checkForUpdates() {
|
export default async function checkForUpdates() {
|
||||||
|
return // Do not check for updates, please
|
||||||
if (process.env.BUILT_FOR_PLAYGROUND === 'true') {
|
if (process.env.BUILT_FOR_PLAYGROUND === 'true') {
|
||||||
// Build for playground. Skipping update check
|
// Build for playground. Skipping update check
|
||||||
return
|
return
|
||||||
|
@ -44,8 +45,8 @@ export default async function checkForUpdates() {
|
||||||
while (true) {
|
while (true) {
|
||||||
const state = val(getStudio().atomP.ahistoric.updateChecker)
|
const state = val(getStudio().atomP.ahistoric.updateChecker)
|
||||||
if (state) {
|
if (state) {
|
||||||
if (state.result !== 'error') {
|
if (state && state?.result !== 'error') {
|
||||||
const lastChecked = state.lastChecked
|
const lastChecked = state?.lastChecked ?? 0
|
||||||
const now = Date.now()
|
const now = Date.now()
|
||||||
const timeElapsedSinceLastCheckedForUpdate = Math.abs(now - lastChecked)
|
const timeElapsedSinceLastCheckedForUpdate = Math.abs(now - lastChecked)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue