Skip to content

Commit e9bc6c9

Browse files
Merge pull request #5 from stackai/add-audio-permissions
Adds audio permissions
2 parents 1ce7bb8 + 2639660 commit e9bc6c9

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/Stack.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,10 @@ const Stack = forwardRef(function Stack({ project, innerRef }: StackProps) {
4747
return (
4848
<iframe
4949
ref={innerRef}
50+
src={project}
5051
id="responsiveIframe"
5152
className="chatbot-container"
52-
src={project}
53+
allow="microphone"
5354
style={{
5455
position: 'fixed',
5556
zIndex: '100',

src/vanilla-stackai.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ function initializeStack() {
4444
iframe.style.borderRadius = '10px';
4545
iframe.style.width = IFRAME_WIDTH_MOBILE;
4646
iframe.style.height = IFRAME_HEIGHT_MOBILE;
47+
iframe.setAttribute('allow', 'microphone');
4748

4849
document.body.appendChild(iframe);
4950

0 commit comments

Comments
 (0)