From ca62f9bec29d766885c7062cb12e65c3271ed2e8 Mon Sep 17 00:00:00 2001 From: damencho Date: Tue, 7 Jun 2016 13:38:47 -0500 Subject: [PATCH] Adds a check to make follow me work without etherpad enabled. --- modules/FollowMe.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/FollowMe.js b/modules/FollowMe.js index a4b18f812..fe6269162 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()); } /**