mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 07:56:16 -04:00
Pad: Use default parameter value
This commit is contained in:
parent
aec512d1fa
commit
449b972e6a
1 changed files with 1 additions and 3 deletions
|
@ -77,9 +77,7 @@ Pad.prototype.getPublicStatus = function () {
|
||||||
return this.publicStatus;
|
return this.publicStatus;
|
||||||
};
|
};
|
||||||
|
|
||||||
Pad.prototype.appendRevision = async function (aChangeset, authorId) {
|
Pad.prototype.appendRevision = async function (aChangeset, authorId = '') {
|
||||||
if (!authorId) authorId = '';
|
|
||||||
|
|
||||||
const newAText = Changeset.applyToAText(aChangeset, this.atext, this.pool);
|
const newAText = Changeset.applyToAText(aChangeset, this.atext, this.pool);
|
||||||
if (newAText.text === this.atext.text && newAText.attribs === this.atext.attribs) {
|
if (newAText.text === this.atext.text && newAText.attribs === this.atext.attribs) {
|
||||||
return this.head;
|
return this.head;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue