pad

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

commit
42d5fd8ecb357e5e26d2cee41ca1d34277ef62c3
parent
fbf9d5c8531b808f447533e49f259599cfb9863c
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2020-05-05 17:36
fixup extend

Diffstat

M static/index.js 6 +++---

1 files changed, 3 insertions, 3 deletions


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

@@ -42,7 +42,7 @@ signal.listen(room, function(msg) {
   42    42 	} else if (msg.type === 'changes') {
   43    43 		applyChanges(msg.data);
   44    44 	} else if (msg.type === 'request') {
   45    -1 		signal.post(room, {sender: id, type: 'text', data: el.value});
   -1    45 		signal.send(room, {sender: id, type: 'text', data: el.value});
   46    46 	} else if (msg.type === 'text' && !el.value) {
   47    47 		setText(msg.data, 0, 0);
   48    48 	}
@@ -53,7 +53,7 @@ setInterval(function() {
   53    53 		stagedChanges = localChanges;
   54    54 		localChanges = [];
   55    55 		var msg = {sender: id, type: 'changes', data: stagedChanges};
   56    -1 		signal.post(room, msg).catch(() => {
   -1    56 		signal.send(room, msg).catch(() => {
   57    57 			localChanges = stagedChanges.concat(localChanges);
   58    58 		}).finally(() => {
   59    59 			stagedChanges = [];
@@ -61,4 +61,4 @@ setInterval(function() {
   61    61 	}
   62    62 }, 500);
   63    63 
   64    -1 signal.post(room, {sender: id, type: 'request'});
   -1    64 signal.send(room, {sender: id, type: 'request'});