Skip to content
Snippets Groups Projects
Commit 9b61076d authored by Emmanuel ROHEE's avatar Emmanuel ROHEE
Browse files

BF: Check config exists (=defined in the localstorage) before using it

parent b9172b98
No related branches found
No related tags found
No related merge requests found
...@@ -36,8 +36,12 @@ angular.module('MatrixWebClientController', ['matrixService', 'mPresence', 'even ...@@ -36,8 +36,12 @@ angular.module('MatrixWebClientController', ['matrixService', 'mPresence', 'even
eventStreamService.resume(); eventStreamService.resume();
mPresence.start(); mPresence.start();
} }
$scope.user_id = matrixService.config().user_id; $scope.user_id;
var config = matrixService.config();
if (config) {
$scope.user_id = matrixService.config().user_id;
}
/** /**
* Open a given page. * Open a given page.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment