Skip to content

Commit

Permalink
Don't crash when updater fails
Browse files Browse the repository at this point in the history
  • Loading branch information
Natsumi-sama committed Dec 2, 2024
1 parent 0d3a942 commit 6da70cc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion html/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 6da70cc

Please sign in to comment.