track Downloads
This commit is contained in:
parent
8d3643a2c3
commit
058aee85f2
@ -77,6 +77,12 @@ function App() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const downloadCode = () => {
|
const downloadCode = () => {
|
||||||
|
try {
|
||||||
|
window.plausible("Download");
|
||||||
|
} catch {
|
||||||
|
// Ignore
|
||||||
|
}
|
||||||
|
|
||||||
// Create a blob from the generated code
|
// Create a blob from the generated code
|
||||||
const blob = new Blob([generatedCode], { type: "text/html" });
|
const blob = new Blob([generatedCode], { type: "text/html" });
|
||||||
const url = URL.createObjectURL(blob);
|
const url = URL.createObjectURL(blob);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user