feat: add umami tracking for app launch and exit events; update dependencies in package.json and bun.lock

This commit is contained in:
2025-12-07 00:11:49 +01:00
parent 3d57524a16
commit ad090ce38c
6 changed files with 35 additions and 16 deletions
+4 -2
View File
@@ -177,6 +177,7 @@
};
const launch = async () => {
umami.track('app_launch_osu');
const osuRunning = await isOsuRunning();
if (osuRunning) {
toast.error('Hold on a second!', {
@@ -480,7 +481,7 @@
}
await runOsu(osuPath, true);
umami.track('app_exit_osu');
launchInfo = 'Cleaning up...';
await getCurrentWindow().show();
if (presenceUpdater) {
@@ -531,6 +532,7 @@
description: 'Failed to launch.',
});
launching.set(false);
umami.track('app_launch_fail', { error: err });
}
};
</script>
@@ -1283,4 +1285,4 @@
</div>
{/if}
</div>
</div>
</div>