From: Alexander Moisseev Date: Mon, 5 Jan 2026 17:41:02 +0000 (+0300) Subject: [Minor] Fix cleanup function in error log clipboard fallback X-Git-Tag: 3.14.3~10^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=edc05dbc9ce03b5f889d59e8a50fbeacae01a56b;p=thirdparty%2Frspamd.git [Minor] Fix cleanup function in error log clipboard fallback Fix cleanup function to remove passed element instead of hardcoded textarea --- diff --git a/interface/js/app/common.js b/interface/js/app/common.js index 035e8660a9..2b6c457578 100644 --- a/interface/js/app/common.js +++ b/interface/js/app/common.js @@ -625,7 +625,7 @@ define(["jquery", "nprogress"], return new Promise((resolve, reject) => { let textarea = null; function cleanup(o) { - if (o && o.parentNode) o.parentNode.removeChild(textarea); + if (o && o.parentNode) o.parentNode.removeChild(o); } try {