repo: janusweb action: commit revision: path_from: revision_from: a2c6ee3442643fc356774222523494e89f9d2ca5: path_to: revision_to:
commit a2c6ee3442643fc356774222523494e89f9d2ca5 Author: James BaicoianuDate: Wed Jan 18 23:46:38 2017 -0800 Fix for URL hash not being updated diff --git a/scripts/janusweb.js b/scripts/janusweb.js
--- a/scripts/janusweb.js
+++ b/scripts/janusweb.js
@@ -346,7 +346,7 @@ elation.require(['janusweb.config', 'engine.things.generic','janusweb.remoteplay
this.engine.client.player.properties.orientation.copy(this.currentroom.playerstartorientation);
}
if (changed && !skipURLUpdate) {
- this.updateClientURL();
+ this.updateClientURL(url);
}
if (!this.currentroom.loaded) {
@@ -361,7 +361,7 @@ elation.require(['janusweb.config', 'engine.things.generic','janusweb.remoteplay
this.load(url, true);
}
}
- this.updateClientURL = function() {
+ this.updateClientURL = function(url) {
if (this.urltemplate) {
var re = new RegExp(elation.template.get('janusweb.url', {url: '(.*)'}).replace('/', '\\/'));
var m = document.location.pathname.match(re);
-----END OF PAGE-----