axios+telemetry cleanup
This commit is contained in:
@@ -12,6 +12,7 @@ import { isAutoUpdaterDisabled } from '../utils/config.js';
|
||||
import { installLatest } from '../utils/nativeInstaller/index.js';
|
||||
import { gt } from '../utils/semver.js';
|
||||
import { getInitialSettings } from '../utils/settings/settings.js';
|
||||
import { VERSION } from '../constants/product.js';
|
||||
|
||||
/**
|
||||
* Categorize error messages for analytics
|
||||
@@ -89,12 +90,12 @@ export function NativeAutoUpdater({
|
||||
try {
|
||||
// Check if current version is above the max allowed version
|
||||
const maxVersion = await getMaxVersion();
|
||||
if (maxVersion && gt(MACRO.VERSION, maxVersion)) {
|
||||
if (maxVersion && gt(VERSION, maxVersion)) {
|
||||
const msg = await getMaxVersionMessage();
|
||||
setMaxVersionIssue(msg ?? 'affects your version');
|
||||
}
|
||||
const result = await installLatest(channel);
|
||||
const currentVersion = MACRO.VERSION;
|
||||
const currentVersion = VERSION;
|
||||
const latencyMs = Date.now() - startTime;
|
||||
|
||||
// Handle lock contention gracefully - just return without treating as error
|
||||
|
||||
Reference in New Issue
Block a user