js cleanup + minor tweaks

This commit is contained in:
ed 2021-04-23 20:04:17 +02:00
parent 5a9c0ad225
commit 127ec10c0d
10 changed files with 312 additions and 261 deletions

View file

@ -171,7 +171,7 @@ Range: bytes=26- Content-Range: bytes */26
var tsh = [];
function convert_markdown(md_text, dest_dom) {
tsh.push(new Date().getTime());
tsh.push(Date.now());
while (tsh.length > 10)
tsh.shift();
if (tsh.length > 1) {