mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-15 17:25:52 +08:00
fix voice input in safari (#537)
This commit is contained in:
parent
a93506df18
commit
7c00a0b6a3
@ -56,7 +56,10 @@ const VoiceInput = ({
|
|||||||
const y = (v - 128) / 50 * canvas.height
|
const y = (v - 128) / 50 * canvas.height
|
||||||
|
|
||||||
ctx.moveTo(x, 16)
|
ctx.moveTo(x, 16)
|
||||||
ctx.roundRect(x, 16 - y, 2, y, [1, 1, 0, 0])
|
if (ctx.roundRect)
|
||||||
|
ctx.roundRect(x, 16 - y, 2, y, [1, 1, 0, 0])
|
||||||
|
else
|
||||||
|
ctx.rect(x, 16 - y, 2, y)
|
||||||
ctx.fill()
|
ctx.fill()
|
||||||
x += 3
|
x += 3
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user