diff --git a/modules/FollowMe.js b/modules/FollowMe.js index a4b18f8129..fe62691628 100644 --- a/modules/FollowMe.js +++ b/modules/FollowMe.js @@ -154,9 +154,10 @@ class FollowMe { this._nextOnStage(smallVideo, isPinned); - this._sharedDocumentToggled - .bind(this, this._UI.getSharedDocumentManager().isVisible()); - + // check whether shared document is enabled/initialized + if(this._UI.getSharedDocumentManager()) + this._sharedDocumentToggled + .bind(this, this._UI.getSharedDocumentManager().isVisible()); } /**