Don't crash when updater fails

This commit is contained in:
Natsumi
2024-12-03 07:35:53 +13:00
parent 0d3a942c02
commit 6da70cc1f6

View File

@@ -142,7 +142,11 @@ speechSynthesis.getVoices();
el: '#x-app',
async mounted() {
await this.initLanguage();
this.isRunningUnderWine = await AppApi.IsRunningUnderWine();
try {
this.isRunningUnderWine = await AppApi.IsRunningUnderWine();
} catch (err) {
console.error(err);
}
await this.changeThemeMode();
await AppApi.SetUserAgent();
this.appVersion = await AppApi.GetVersion();