mathdown icon indicating copy to clipboard operation
mathdown copied to clipboard

[New document] was broken

Open cben opened this issue 9 years ago • 2 comments

cben avatar Apr 28 '15 08:04 cben

This was (A) dumb bug I should have seen (B) has no tests (C) seriously broke stuff for ~5 days!

hot-fixed by 7c7d63c17e0eb94fbb8f4883c4f7809a738869c6.

Not sure the window.newPad = newPad; fix is elegant; now that I have a server side, the right thing probably involves a server side redirect e.g. /new/ -> random, pointing href there (actually no, it must be a button with POST), and unobtrusively attaching .onclick = newPad or dropping it entirely. [That's also a good time to stop using weak Math.random in browsers without strong random]

But first, tests.

cben avatar Apr 28 '15 09:04 cben

re POST: should consider what happens when running from local files. For some reason googling didn't answer the simple question whether POST to a file:// URL works. Perhaps the question is too dumb.

cben avatar Apr 28 '15 11:04 cben