mirror of
https://github.com/labring/FastGPT.git
synced 2025-10-16 16:04:34 +00:00
fix iframe.js to support microphone (#4993)
Co-authored-by: dreamer6680 <146868355@qq.com>
This commit is contained in:
@@ -32,7 +32,7 @@ function embedChatbot() {
|
|||||||
ChatBtnDiv.draggable = false;
|
ChatBtnDiv.draggable = false;
|
||||||
|
|
||||||
const iframe = document.createElement('iframe');
|
const iframe = document.createElement('iframe');
|
||||||
iframe.allow = '*';
|
iframe.allow = 'microphone *; *';
|
||||||
iframe.referrerPolicy = 'no-referrer';
|
iframe.referrerPolicy = 'no-referrer';
|
||||||
iframe.title = 'FastGPT Chat Window';
|
iframe.title = 'FastGPT Chat Window';
|
||||||
iframe.id = chatWindowId;
|
iframe.id = chatWindowId;
|
||||||
|
Reference in New Issue
Block a user