Fix module.onLocal not defined

pull/1/head
yflory 8 years ago
parent 4ddf9b4e04
commit 2732b7aa82

@ -123,6 +123,17 @@ define([
myUserName = myID;
};
var config = module.config = {
initialState: '{}',
websocketURL: Cryptpad.getWebsocketURL(),
validateKey: secret.keys.validateKey,
readOnly: readOnly,
channel: secret.channel,
crypto: Crypto.createEncryptor(secret.keys),
setMyID: setMyID,
transformFunction: JsonOT.transform,
};
var suggestName = function (fallback) {
if (document.title === defaultName) {
return fallback || "";
@ -134,18 +145,7 @@ define([
var renameCb = function (err, title) {
if (err) { return; }
document.title = title;
module.onLocal();
};
var config = module.config = {
initialState: '{}',
websocketURL: Cryptpad.getWebsocketURL(),
validateKey: secret.keys.validateKey,
readOnly: readOnly,
channel: secret.channel,
crypto: Crypto.createEncryptor(secret.keys),
setMyID: setMyID,
transformFunction: JsonOT.transform,
config.onLocal();
};
var editHash;

Loading…
Cancel
Save