From 3c496ddd9d4a92ea33906c2a83e5cf06be0625e1 Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Thu, 10 Oct 2024 13:14:35 +0200 Subject: [PATCH] :arrow_up: Update plugins runtime --- frontend/resources/plugins-runtime/index.js | 22 ++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/frontend/resources/plugins-runtime/index.js b/frontend/resources/plugins-runtime/index.js index 2155ad986..4f538445b 100644 --- a/frontend/resources/plugins-runtime/index.js +++ b/frontend/resources/plugins-runtime/index.js @@ -8232,25 +8232,25 @@ window.addEventListener("message", (t) => { console.error(e); } }); -const Dl = async function(t) { +const Dl = async function(t, e) { try { - const e = yn && yn(t.pluginId); - if (!e) + const r = yn && yn(t.pluginId); + if (!r) return; bo(); - const r = await Ll( - P.harden(e), + const n = await Ll( + P.harden(r), t, () => { - ht = ht.filter((n) => n !== r); + ht = ht.filter((o) => o !== n), e && e(); } ); - ht.push(r); - } catch (e) { - bo(), console.error(e); + ht.push(n); + } catch (r) { + bo(), console.error(r); } -}, zs = async function(t) { - Dl(t); +}, zs = async function(t, e) { + Dl(t, e); }, Ul = async function(t) { const e = await Al(t); zs(e);