chore: Track PWA installs

This commit is contained in:
Sidharth Vinod
2025-04-13 13:40:50 +05:30
parent f4a736db62
commit e11017672f
3 changed files with 5 additions and 0 deletions
+1
View File
@@ -2,6 +2,7 @@
"editor.formatOnSave": true,
"cSpell.blockCheckingWhenLineLengthGreaterThan": 150,
"cSpell.words": [
"appinstalled",
"asyncable",
"Browserslist",
"ckppp",
+1
View File
@@ -88,6 +88,7 @@ const delaysPerEvent = {
mobileViewToggle: defaultDelay,
panZoom: minutesToMilliSeconds(10),
playgroundToggle: 0,
pwaInstalled: defaultDelay,
render: minutesToMilliSeconds(5),
renderDiagram: defaultDelay,
themeChange: defaultDelay,
+3
View File
@@ -53,6 +53,9 @@
onMount(async () => {
await initHandler();
window.addEventListener('appinstalled', () => {
logEvent('pwaInstalled');
});
});
let isHistoryOpen = $state(false);