diff --git a/copyparty/web/browser.html b/copyparty/web/browser.html index 90cd60e8..c4a4b73c 100644 --- a/copyparty/web/browser.html +++ b/copyparty/web/browser.html @@ -135,6 +135,7 @@ '; + + return function () { + if (ret || busy) + return ret || tag; + + var xhr = new XHR(); + xhr.open('GET', url, true); + xhr.onload = function () { + if (this.status == 200) + ret = ''; + }; + xhr.send(); + busy = true; + return tag; + }; +})(); + function show_md(md, name, div, url, depth) { var errmsg = L.md_eshow + name + ':\n\n', @@ -6696,8 +6718,7 @@ function sandbox(tgt, rules, cls, html) { html = '' + html + - '' + - '' + + '' + sandboxjs() + '