@impro.social/impro-plugin 0.0.17 → 0.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/main.js +15 -0
- package/package.json +1 -1
package/main.js
CHANGED
|
@@ -535,6 +535,21 @@ export class Modal {
|
|
|
535
535
|
});
|
|
536
536
|
}
|
|
537
537
|
|
|
538
|
+
update() {
|
|
539
|
+
if (!openModals.has(this._modalId)) return;
|
|
540
|
+
self.postMessage({
|
|
541
|
+
type: "hostCall",
|
|
542
|
+
method: "updateModal",
|
|
543
|
+
args: [
|
|
544
|
+
{
|
|
545
|
+
modalId: this._modalId,
|
|
546
|
+
title: this.titleEl._serialize(),
|
|
547
|
+
content: this.contentEl._serialize(),
|
|
548
|
+
},
|
|
549
|
+
],
|
|
550
|
+
});
|
|
551
|
+
}
|
|
552
|
+
|
|
538
553
|
close() {
|
|
539
554
|
if (!openModals.has(this._modalId)) return;
|
|
540
555
|
openModals.delete(this._modalId);
|