fix: display correct app version for desktop

This commit is contained in:
Mo
2022-01-05 15:50:40 +01:00
committed by Karol Sójko
parent e79f326e5b
commit dfde84c2f6
9 changed files with 60 additions and 104 deletions
+4
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);
};