don't depend on library to set hash

This commit is contained in:
ansuz 2016-04-21 19:04:15 +02:00
parent 5f4825f3a0
commit cce50390a0

View File

@ -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