repo: janusweb
action: commit
revision: 
path_from: 
revision_from: 20a08d516ed2244a16c0c4755162d67c1152fbb0:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit 20a08d516ed2244a16c0c4755162d67c1152fbb0
Author: James Baicoianu 
Date:   Wed Jan 18 22:38:41 2017 -0800

    Don't set room active if it already is active

diff --git a/scripts/janusweb.js b/scripts/janusweb.js
index ee9c33fe21ffa83ddcdad30e49fdf936c3854380..
index ..e3ed95fba3b22ab8a3e7242156d9796497f67f80 100644
--- a/scripts/janusweb.js
+++ b/scripts/janusweb.js
@@ -390,7 +390,7 @@ elation.require(['janusweb.config', 'engine.things.generic','janusweb.remoteplay
       if (this.urltemplate) {
         var re = new RegExp(elation.template.get('janusweb.url', {url: '(.*)'}).replace('/', '\\/'));
         var m = document.location.pathname.match(re);
-        if (m) {
+        if (m && m[1] != this.currentroom.url) {
           this.setActiveRoom(m[1], null, true);
         }
       } else {

-----END OF PAGE-----