Fixes error when myroomjid is null.

This commit is contained in:
fo 2014-12-11 13:37:41 +02:00
parent b6a665e007
commit 451d16a664
2 changed files with 4 additions and 1 deletions

View File

@ -85,6 +85,9 @@ var AudioLevels = (function(my) {
drawContext.drawImage(canvasCache, 0, 0);
if(resourceJid === AudioLevels.LOCAL_LEVEL) {
if(!connection.emuc.myroomjid) {
return;
}
resourceJid = Strophe.getResourceFromJid(connection.emuc.myroomjid);
}

View File

@ -54,7 +54,7 @@
<script src="toolbar.js?v=6"></script><!-- toolbar ui -->
<script src="toolbar_toggler.js?v=2"></script>
<script src="canvas_util.js?v=1"></script><!-- canvas drawing utils -->
<script src="audio_levels.js?v=3"></script><!-- audio levels plugin -->
<script src="audio_levels.js?v=4"></script><!-- audio levels plugin -->
<script src="media_stream.js?v=2"></script><!-- media stream -->
<script src="bottom_toolbar.js?v=6"></script><!-- media stream -->
<script src="moderator.js?v=2"></script><!-- media stream -->