mirror of
https://github.com/penpot/penpot.git
synced 2025-05-15 23:16:37 +02:00
⬆️ Update plugins runtime
This commit is contained in:
parent
87dfd2b3c8
commit
3c496ddd9d
1 changed files with 11 additions and 11 deletions
|
@ -8232,25 +8232,25 @@ window.addEventListener("message", (t) => {
|
||||||
console.error(e);
|
console.error(e);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
const Dl = async function(t) {
|
const Dl = async function(t, e) {
|
||||||
try {
|
try {
|
||||||
const e = yn && yn(t.pluginId);
|
const r = yn && yn(t.pluginId);
|
||||||
if (!e)
|
if (!r)
|
||||||
return;
|
return;
|
||||||
bo();
|
bo();
|
||||||
const r = await Ll(
|
const n = await Ll(
|
||||||
P.harden(e),
|
P.harden(r),
|
||||||
t,
|
t,
|
||||||
() => {
|
() => {
|
||||||
ht = ht.filter((n) => n !== r);
|
ht = ht.filter((o) => o !== n), e && e();
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
ht.push(r);
|
ht.push(n);
|
||||||
} catch (e) {
|
} catch (r) {
|
||||||
bo(), console.error(e);
|
bo(), console.error(r);
|
||||||
}
|
}
|
||||||
}, zs = async function(t) {
|
}, zs = async function(t, e) {
|
||||||
Dl(t);
|
Dl(t, e);
|
||||||
}, Ul = async function(t) {
|
}, Ul = async function(t) {
|
||||||
const e = await Al(t);
|
const e = await Al(t);
|
||||||
zs(e);
|
zs(e);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue