diff --git a/copyparty/web/util.js b/copyparty/web/util.js index 8bfe697b..80696489 100644 --- a/copyparty/web/util.js +++ b/copyparty/web/util.js @@ -679,6 +679,7 @@ var toast = (function () { obj.setAttribute('id', 'toast'); document.body.appendChild(obj); r.visible = false; + r.txt = null; r.hide = function (e) { ev(e); @@ -698,6 +699,7 @@ var toast = (function () { obj.className += ' vis'; ebi('toastc').onclick = r.hide; r.visible = true; + r.txt = txt; }; r.ok = function (ms, txt) {