Unverified Commit 7c00a0b6 authored by zxhlyh's avatar zxhlyh Committed by GitHub

fix voice input in safari (#537)

parent a93506df
......@@ -56,7 +56,10 @@ const VoiceInput = ({
const y = (v - 128) / 50 * canvas.height
ctx.moveTo(x, 16)
if (ctx.roundRect)
ctx.roundRect(x, 16 - y, 2, y, [1, 1, 0, 0])
else
ctx.rect(x, 16 - y, 2, y)
ctx.fill()
x += 3
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment