mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-31 19:02:59 +01:00
setText: prevent adding useless revision in case the pad text did not
change
This commit is contained in:
parent
63de249236
commit
f7f5e3dad8
1 changed files with 1 additions and 1 deletions
|
@ -258,7 +258,7 @@ Pad.prototype.setText = async function (newText) {
|
|||
}
|
||||
|
||||
// append the changeset
|
||||
await this.appendRevision(changeset);
|
||||
if (newText !== oldText) await this.appendRevision(changeset);
|
||||
};
|
||||
|
||||
Pad.prototype.appendText = async function (newText) {
|
||||
|
|
Loading…
Reference in a new issue