- commit
- ef8d6d64c70c6f2946f75835a22b045c354ab4c7
- parent
- 057cf18735170c515266b73f85daae5f318971b8
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2023-11-17 11:48
s/evtSource/eventSource/g
Diffstat
M | static/pad.js | 8 | ++++---- |
1 files changed, 4 insertions, 4 deletions
diff --git a/static/pad.js b/static/pad.js
@@ -111,14 +111,14 @@ document.querySelector('button').addEventListener('click', function() { 111 111 112 112 window.addEventListener('offline', function() { 113 113 el.readOnly = true;114 -1 evtSource.close();-1 114 eventSource.close(); 115 115 }); 116 116117 -1 var evtSource = new EventSource(url);118 -1 evtSource.onopen = function() {-1 117 var eventSource = new EventSource(url); -1 118 eventSource.onopen = function() { 119 119 el.readOnly = false; 120 120 };121 -1 evtSource.onmessage = function(event) {-1 121 eventSource.onmessage = function(event) { 122 122 handleMessage(JSON.parse(event.data)); 123 123 124 124 if (Math.random() < 0.05) {