- commit
- de843b3535e8a9355f12c288365ecc39c86e94b4
- parent
- 1e1d1afb25a1ebb6ec31c581e618854ed0b14cc7
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2020-05-03 15:27
rm unused signal.beacon()
Diffstat
M | static/signal.js | 4 | ---- |
1 files changed, 0 insertions, 4 deletions
diff --git a/static/signal.js b/static/signal.js
@@ -14,10 +14,6 @@ export var post = function(key, data) { 14 14 return fetch(baseUrl + key, {method: 'POST', body: JSON.stringify(data)}); 15 15 }; 16 1617 -1 export var beacon = function(key, data) {18 -1 return navigator.sendBeacon(baseUrl + key, JSON.stringify(data));19 -1 };20 -121 17 export var listen = function(key, fn) { 22 18 var evtSource = new EventSource(baseUrl + key + '?sse'); 23 19 evtSource.onmessage = msg => fn(JSON.parse(msg.data));