Skip to content

Commit

Permalink
fix: removed use of uuid package to crypto.
Browse files Browse the repository at this point in the history
  • Loading branch information
sravanth-space committed Jun 25, 2023
1 parent 91b1b95 commit 62b444b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import {
MustacheColor,
BackgroundColor,
} from "./types";
import { v4 } from "uuid";

function App() {
const defaultConfig: AvataramConfig = {
Expand Down Expand Up @@ -64,7 +63,8 @@ function App() {

const link = document.createElement("a");
link.href = svgURL;
link.download = v4() + "_" + new Date().toLocaleDateString() + ".svg";
link.download =
crypto.randomUUID() + "_" + new Date().toLocaleDateString() + ".svg";

link.click();

Expand Down

0 comments on commit 62b444b

Please sign in to comment.