pad

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

commit
9da9ebbd6b6820733f5e92304912ce194d1be52d
parent
9d35a87128b74e9b852b3ac542adc6c57cbd1bf0
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2024-09-30 20:24
prevent multiple alerts

Diffstat

M static/pad.js 8 +++++---

1 files changed, 5 insertions, 3 deletions


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

@@ -18,9 +18,11 @@ var failedRequests = 0;
   18    18 document.title += ' - ' + location.hash.slice(1);
   19    19 
   20    20 var exit = function() {
   21    -1 	el.readOnly = true;
   22    -1 	eventSource.close();
   23    -1 	alert('Connection lost');
   -1    21 	if (!el.readOnly) {
   -1    22 		el.readOnly = true;
   -1    23 		eventSource.close();
   -1    24 		alert('Connection lost');
   -1    25 	}
   24    26 };
   25    27 
   26    28 var sendChanges = utils.throttled(function() {