From cce50390a07bfeb550c530fff8ae3cf6e14f3be2 Mon Sep 17 00:00:00 2001 From: ansuz Date: Thu, 21 Apr 2016 19:04:15 +0200 Subject: [PATCH] don't depend on library to set hash --- www/pad/main.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/www/pad/main.js b/www/pad/main.js index 901fce1c5..c535b678b 100644 --- a/www/pad/main.js +++ b/www/pad/main.js @@ -107,7 +107,7 @@ define([ var inner = window.inner = documentBody; var cursor = window.cursor = Cursor(inner); - var setEditable = function (bool) { + var setEditable = module.setEditable = function (bool) { inner.setAttribute('contenteditable', bool); }; @@ -304,7 +304,9 @@ define([ }; toolbar = info.realtime.toolbar = Toolbar.create($bar, info.myID, info.realtime, info.getLag, info.userList, config); createChangeName('cryptpad-changeName', $bar); - /* TODO handle disconnects and such*/ + + // set the hash + window.location.hash = info.channel + key; }; // this should only ever get called once, when the chain syncs