mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 15:36:16 -04:00
ace: Simplify Ace2Editor method creation
* Delete the unused `optDoNow` parameter from `pendingInit()`. * Move the `setAuthorInfo()` 1st parameter check out of the wrapper and in to the `setAuthorInfo()` function itself.
This commit is contained in:
parent
865a463154
commit
3c2e0f0e16
2 changed files with 13 additions and 31 deletions
|
@ -258,6 +258,7 @@ function Ace2Inner() {
|
|||
};
|
||||
|
||||
const setAuthorInfo = (author, info) => {
|
||||
if (!author) return; // author ID not set for some reason
|
||||
if ((typeof author) !== 'string') {
|
||||
// Potentially caused by: https://github.com/ether/etherpad-lite/issues/2802");
|
||||
throw new Error(`setAuthorInfo: author (${author}) is not a string`);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue