Browse Source

fix voice input in safari (#537)

tags/0.3.7
zxhlyh 2 years ago
parent
commit
7c00a0b6a3
No account linked to committer's email address
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      web/app/components/base/voice-input/index.tsx

+ 4
- 1
web/app/components/base/voice-input/index.tsx View File

@@ -56,7 +56,10 @@ const VoiceInput = ({
const y = (v - 128) / 50 * canvas.height

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()
x += 3
}

Loading…
Cancel
Save