pad

minimal etherpad alternative  https://pad.ce9e.org
git clone https://git.ce9e.org/pad.git

commit
6f6aea8696c1a7dccaec000b3da9ed4dd45737c9
parent
9da9ebbd6b6820733f5e92304912ce194d1be52d
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2025-06-05 08:05
rename optimize to consolidate

Diffstat

M static/pad.js 4 ++--

1 files changed, 2 insertions, 2 deletions


diff --git a/static/pad.js b/static/pad.js

@@ -96,7 +96,7 @@ var handleMessage = function(msg) {
   96    96 	}
   97    97 };
   98    98 
   99    -1 var optimize = function(lastEventId) {
   -1    99 var consolidate = function(lastEventId) {
  100   100 	var change;
  101   101 	var text = el.value;
  102   102 	var myChanges = [].concat(stagedChanges, localChanges);
@@ -137,7 +137,7 @@ eventSource.onmessage = function(event) {
  137   137 	handleMessage(JSON.parse(event.data));
  138   138 
  139   139 	if (Math.random() < 0.05) {
  140    -1 		optimize(event.lastEventId);
   -1   140 		consolidate(event.lastEventId);
  141   141 	}
  142   142 };
  143   143