fix: crypto.randomUUID is not a function
This commit is contained in:
@@ -35,7 +35,7 @@ const build = (img: HTMLImageElement, sizes: number[]): [number, string] => {
|
|||||||
const ctx = canvas.getContext('2d')
|
const ctx = canvas.getContext('2d')
|
||||||
|
|
||||||
const coordinate = size / 2
|
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?.beginPath()
|
||||||
ctx?.translate(coordinate, coordinate)
|
ctx?.translate(coordinate, coordinate)
|
||||||
|
Reference in New Issue
Block a user