- commit
- 631b0cf971d2e8ab3b4d7079a577203499b92006
- parent
- 1f0fce2d54b58d8f1398738a606026d40a08e47c
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2020-05-21 09:02
rename wrapped to unthrottled
Diffstat
M | static/pad.js | 2 | +- |
M | static/utils.js | 2 | +- |
2 files changed, 2 insertions, 2 deletions
diff --git a/static/pad.js b/static/pad.js
@@ -111,7 +111,7 @@ via.listen(room, function(msg) { 111 111 } 112 112 }); 113 113114 -1 window.addEventListener('beforeunload', backup.wrapped);-1 114 window.addEventListener('beforeunload', backup.unthrottled); 115 115 window.addEventListener('offline', function() { 116 116 el.readOnly = true; 117 117 });
diff --git a/static/utils.js b/static/utils.js
@@ -22,6 +22,6 @@ export var throttled = function(fn, timeout) { 22 22 } 23 23 }; 24 2425 -1 wrapper.wrapped = fn;-1 25 wrapper.unthrottled = fn; 26 26 return wrapper; 27 27 };