feat: better analytics

This commit is contained in:
not-nullptr 2024-11-15 12:42:43 +00:00
parent e0f26ba488
commit b1f4d430a2
1 changed files with 4 additions and 3 deletions

View File

@ -72,13 +72,14 @@
for (let i = 0; i < files.files.length; i++) { for (let i = 0; i < files.files.length; i++) {
promises.push( promises.push(
(async (i) => { (async (i) => {
await convert(files.files[i], i);
window.plausible("Convert", { window.plausible("Convert", {
props: { props: {
"Format from": files.files[i].from, "Format from": files.files[i].from.toLowerCase(),
"Format to": files.files[i].to, "Format to": files.files[i].to.toLowerCase(),
Conversion: `${files.files[i].from.toLowerCase()} to ${files.files[i].to.toLowerCase()}`,
}, },
}); });
await convert(files.files[i], i);
})(i), })(i),
); );
} }