mirror of
https://github.com/ether/etherpad-lite.git
synced 2026-05-10 14:46:20 +02:00
dont pass empty author info to edit
This commit is contained in:
parent
3e3b0dec97
commit
dbab4ad13a
@ -102,7 +102,15 @@ function Ace2Editor()
|
||||
var prefix = 'ace_';
|
||||
var name = prefix + fnName;
|
||||
editor[fnName] = pendingInit(function(){
|
||||
info[prefix + fnName].apply(this, arguments);
|
||||
if(fnName === "setAuthorInfo"){
|
||||
if(!arguments[0]){
|
||||
top.console.warn("setAuthorInfo AuthorId not set for some reason", arguments);
|
||||
}else{
|
||||
info[prefix + fnName].apply(this, arguments);
|
||||
}
|
||||
}else{
|
||||
info[prefix + fnName].apply(this, arguments);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user