dont show entire web pages in toasts

This commit is contained in:
ed 2021-09-30 19:35:56 +02:00
parent b8ac9b7994
commit 7715299dd3

View file

@ -905,6 +905,9 @@ var toast = (function () {
if (sec)
te = setTimeout(r.hide, sec * 1000);
if (txt.indexOf('<body>') + 1)
txt = txt.slice(0, txt.indexOf('<')) + ' [...]';
obj.innerHTML = '<a href="#" id="toastc">x</a><div id="toastb">' + lf2br(txt) + '</div>';
obj.className = cl;
sec += obj.offsetWidth;