Try iframe with more permissions

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