mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-03-30 19:26:37 +00:00
feat: add env variable to disable update check
This commit is contained in:
@@ -63,8 +63,8 @@ export default class AppConfigService extends APIService {
|
||||
.then((res) => res.data)
|
||||
.catch(() => null);
|
||||
|
||||
let newestVersion: string | null = null;
|
||||
let isUpToDate: boolean | null = null;
|
||||
let newestVersion: string | undefined;
|
||||
let isUpToDate: boolean | undefined;
|
||||
if (response) {
|
||||
newestVersion = response.tag_name.replace('v', '');
|
||||
isUpToDate = newestVersion === currentVersion;
|
||||
|
||||
@@ -45,7 +45,7 @@ export type AppConfigRawResponse = {
|
||||
}[];
|
||||
|
||||
export type AppVersionInformation = {
|
||||
isUpToDate: boolean | null;
|
||||
newestVersion: string | null;
|
||||
isUpToDate?: boolean;
|
||||
newestVersion?: string;
|
||||
currentVersion: string;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user