Skip to content

Commit

Permalink
Add missing component props
Browse files Browse the repository at this point in the history
  • Loading branch information
nandito authored and havardholvik committed Feb 6, 2023
1 parent f211930 commit 6eb114a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib/embed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ declare global {
const boolAttrs = [
"audio",
"background",
"cameraaccess",
"chat",
"people",
"embed",
Expand Down Expand Up @@ -112,6 +113,9 @@ define("WherebyEmbed", {
toggleMicrophone(enabled: boolean) {
this._postCommand("toggle_microphone", [enabled]);
},
toggleScreenshare(enabled: boolean) {
this._postCommand("toggle_screenshare", [enabled]);
},
onmessage({ origin, data }: { origin: string; data: { type: string; payload: string } }) {
const url = new URL(this.room, `https://${this.subdomain}.whereby.com`);
if (origin !== url.origin) return;
Expand Down

0 comments on commit 6eb114a

Please sign in to comment.