diff --git a/audio_levels.js b/audio_levels.js index 5db737793..041a4afd4 100644 --- a/audio_levels.js +++ b/audio_levels.js @@ -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); } diff --git a/index.html b/index.html index b08db0c19..955d910b2 100644 --- a/index.html +++ b/index.html @@ -54,7 +54,7 @@ - +