From 12986da1477ceba82b1c1983e3f16987937ef295 Mon Sep 17 00:00:00 2001 From: ed Date: Thu, 26 Aug 2021 22:45:50 +0200 Subject: [PATCH] might be useful some time --- copyparty/web/util.js | 2 ++ 1 file changed, 2 insertions(+) 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) {