Try iframe with more permissions
This commit is contained in:
@@ -158,17 +158,16 @@ export default function SiteMenteVoiceWidget({
|
||||
</button>
|
||||
</div>
|
||||
|
||||
{/* Synthflow Widget - Opens in new window instead of iframe */}
|
||||
{/* Synthflow Widget - Embedded iframe */}
|
||||
{mode === "synthflow" && (
|
||||
<div className="absolute bottom-16 right-0 mb-2">
|
||||
<button
|
||||
onClick={() => window.open('https://widget.synthflow.ai/widget/v2/0ee1b79c-43c2-41e0-aa6a-d2a560e0ca6a/1771945296284x399137457562280600', 'synthflow', 'width=450,height=600,scrollbars=yes')}
|
||||
className="flex items-center gap-2 bg-green-500 hover:bg-green-600 text-white px-4 py-2 rounded-full shadow-lg transition"
|
||||
>
|
||||
<span>🎙️</span>
|
||||
<span className="font-medium">Talk to AI</span>
|
||||
</button>
|
||||
<p className="text-xs text-white/50 mt-1 text-center">Click to open voice chat</p>
|
||||
<div className="absolute bottom-16 right-0 w-[380px] h-[520px] mb-2 rounded-xl overflow-hidden shadow-2xl border-2 border-green-500">
|
||||
<iframe
|
||||
src="https://widget.synthflow.ai/widget/v2/0ee1b79c-43c2-41e0-aa6a-d2a560e0ca6a/1771945296284x399137457562280600?theme=dark"
|
||||
className="w-full h-full"
|
||||
allow="microphone; autoplay; fullscreen"
|
||||
sandbox="allow-scripts allow-same-origin allow-forms allow-popups allow-modals"
|
||||
title="Synthflow AI Voice Assistant"
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user