fix: crypto.randomUUID is not a function

This commit is contained in:
landaiqing
2024-05-05 02:22:00 +08:00
parent 0a033b802e
commit 827570f6b2

View File

@@ -35,7 +35,7 @@ const build = (img: HTMLImageElement, sizes: number[]): [number, string] => {
const ctx = canvas.getContext('2d')
const coordinate = size / 2
const moveX = Math.floor(Math.random() * (max - min + 1)) + 0
const moveX = Math.floor(Math.random() * (max - min + 1))
ctx?.beginPath()
ctx?.translate(coordinate, coordinate)