Skip to content

Commit 44ba308

Browse files
committed
Fixed screensharing sample
1 parent bd72522 commit 44ba308

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/advanced-features/screen-share.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ To share your screen instead of your webcam, the process is exactly the same as
1919
```javascript
2020
var OV = new OpenVidu();
2121
var sessionScreen = OV.initSession();
22-
getToken((token) => {
22+
getToken().then((token) => {
2323
sessionScreen.connect(token).then(() => {
2424
var publisher = OV.initPublisher("html-element-id", { videoSource: "screen" });
2525

@@ -39,7 +39,7 @@ getToken((token) => {
3939
console.warn('There was an error connecting to the session:', error.code, error.message);
4040

4141
}));
42-
}
42+
});
4343

4444
```
4545

0 commit comments

Comments
 (0)