fix: display correct app version for desktop

This commit is contained in:
Mo
2022-01-03 15:28:04 -06:00
committed by Karol Sójko
parent e79f326e5b
commit dfde84c2f6
9 changed files with 60 additions and 104 deletions

View File

@@ -148,6 +148,10 @@ export function isDesktopApplication() {
return IsDesktopPlatform;
}
export function getDesktopVersion() {
return (window as any).electronAppVersion;
}
export const isEmailValid = (email: string): boolean => {
return EMAIL_REGEX.test(email);
};