Update index.tsx

This commit is contained in:
Christopher Chedeau 2020-01-04 15:09:25 -08:00 committed by GitHub
parent b3e427db9a
commit 9dc6429946
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -491,7 +491,7 @@ function exportAsPNG({
link.setAttribute("href", tempCanvas.toDataURL("image/png"));
link.click();
// // clean up the DOM
// clean up the DOM
link.remove();
if (tempCanvas !== canvas) tempCanvas.remove();
}