aboutsummaryrefslogtreecommitdiff
path: root/src-vue/src/plugins
diff options
context:
space:
mode:
authorGeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com>2022-11-21 13:05:32 +0100
committerGitHub <noreply@github.com>2022-11-21 13:05:32 +0100
commit73f5e843cb705d612015e150dfea488bb2cf7e3f (patch)
treec9710dda7af0633477b90db3c73cd352650724df /src-vue/src/plugins
parent02191fe8972d3bc2a3ab64138b150283c72c6696 (diff)
downloadFlightCore-73f5e843cb705d612015e150dfea488bb2cf7e3f.tar.gz
FlightCore-73f5e843cb705d612015e150dfea488bb2cf7e3f.zip
fix: Catch error for missing handle (#60)
Setting install path manually when one exists already will error out on trying to delete the non-existing "no install found" notification using its non-existing handle.
Diffstat (limited to 'src-vue/src/plugins')
-rw-r--r--src-vue/src/plugins/store.ts7
1 files changed, 6 insertions, 1 deletions
diff --git a/src-vue/src/plugins/store.ts b/src-vue/src/plugins/store.ts
index b97af2a7..8ebcaf80 100644
--- a/src-vue/src/plugins/store.ts
+++ b/src-vue/src/plugins/store.ts
@@ -97,7 +97,12 @@ export const store = createStore<FlightCoreStore>({
type: 'success',
position: 'bottom-right'
});
- notification_handle.close();
+ try {
+ notification_handle.close();
+ }
+ catch {
+ console.warn("Nothing to close");
+ }
state.install_type = InstallType.UNKNOWN;
// Check for Northstar install