Remove the pipe character in the hash

pull/1/head
Yann Flory 9 years ago
parent c32045d7d0
commit 69e8e18283

@ -197,7 +197,7 @@ define([
return ChainPad.create(userName, return ChainPad.create(userName,
passwd, passwd,
channel, channel,
config.initialState || {}, config.initialState || '',
{ {
transformFunction: config.transformFunction transformFunction: config.transformFunction
}); });
@ -206,7 +206,7 @@ define([
var onOpen = function(wc, network) { var onOpen = function(wc, network) {
channel = wc.id; channel = wc.id;
window.location.hash = channel + '|' + chanKey; window.location.hash = channel + chanKey;
// Add the existing peers in the userList // Add the existing peers in the userList
wc.members.forEach(onJoining); wc.members.forEach(onJoining);

@ -80,7 +80,7 @@ define([
else { else {
var hash = window.location.hash.substring(1); var hash = window.location.hash.substring(1);
channel = hash.substr(0,32); channel = hash.substr(0,32);
key = hash.substr(33); key = hash.substr(32);
} }
var fixThings = false; var fixThings = false;

Loading…
Cancel
Save