From 69e8e182837b9e949bdf6b04c524c13137be7522 Mon Sep 17 00:00:00 2001 From: Yann Flory Date: Thu, 14 Apr 2016 16:10:08 +0200 Subject: [PATCH] Remove the pipe character in the hash --- www/common/realtime-input.js | 4 ++-- www/pad/main.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/www/common/realtime-input.js b/www/common/realtime-input.js index 437d5fb48..5bcbaf8b3 100644 --- a/www/common/realtime-input.js +++ b/www/common/realtime-input.js @@ -197,7 +197,7 @@ define([ return ChainPad.create(userName, passwd, channel, - config.initialState || {}, + config.initialState || '', { transformFunction: config.transformFunction }); @@ -206,7 +206,7 @@ define([ var onOpen = function(wc, network) { channel = wc.id; - window.location.hash = channel + '|' + chanKey; + window.location.hash = channel + chanKey; // Add the existing peers in the userList wc.members.forEach(onJoining); diff --git a/www/pad/main.js b/www/pad/main.js index 59c9de2ae..9429e552c 100644 --- a/www/pad/main.js +++ b/www/pad/main.js @@ -80,7 +80,7 @@ define([ else { var hash = window.location.hash.substring(1); channel = hash.substr(0,32); - key = hash.substr(33); + key = hash.substr(32); } var fixThings = false;