Skip to content

Commit

Permalink
chore: Update MediaDevices constructor to use readonly props
Browse files Browse the repository at this point in the history
  • Loading branch information
shinyoshiaki committed Aug 8, 2024
1 parent b9b8afd commit 3f7497a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/webrtc/src/nonstandard/navigator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ export class MediaDevices extends EventTarget {
video?: MediaStreamTrack;
audio?: MediaStreamTrack;

constructor(props: { video?: MediaStreamTrack; audio?: MediaStreamTrack }) {
constructor(
readonly props: { video?: MediaStreamTrack; audio?: MediaStreamTrack },
) {
super();
this.video = props.video;
this.audio = props.audio;
Expand Down

0 comments on commit 3f7497a

Please sign in to comment.