Skip to content

Commit

Permalink
fix: allow camera & mic access for page in iframe widget
Browse files Browse the repository at this point in the history
  • Loading branch information
ganganimaulik committed Apr 29, 2022
1 parent 16724bd commit 59e8ad1
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions app/client/src/widgets/IframeWidget/component/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,20 @@ function IframeComponent(props: IframeComponentProps) {
{message ? (
message
) : srcDoc ? (
<iframe ref={frameRef} src={source} srcDoc={srcDoc} title={title} />
<iframe
allow="camera; microphone"
ref={frameRef}
src={source}
srcDoc={srcDoc}
title={title}
/>
) : (
<iframe ref={frameRef} src={source} title={title} />
<iframe
allow="camera; microphone"
ref={frameRef}
src={source}
title={title}
/>
)}
</IframeContainer>
);
Expand Down

0 comments on commit 59e8ad1

Please sign in to comment.