track Downloads

This commit is contained in:
Abi Raja 2023-11-29 05:35:22 -05:00
parent 8d3643a2c3
commit 058aee85f2

View File

@ -77,6 +77,12 @@ function App() {
};
const downloadCode = () => {
try {
window.plausible("Download");
} catch {
// Ignore
}
// Create a blob from the generated code
const blob = new Blob([generatedCode], { type: "text/html" });
const url = URL.createObjectURL(blob);