Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix voice input in safari (#537)

zxhlyh7c00a0b6a3c8
diff --git a/web/app/components/base/voice-input/index.tsx b/web/app/components/base/voice-input/index.tsx
index 19d9c63ae15..f1b020c9160 100644
--- a/web/app/components/base/voice-input/index.tsx
+++ b/web/app/components/base/voice-input/index.tsx
@@ -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
}