mol_dump_lib 0.0.245 → 0.0.246

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/web.js CHANGED
@@ -4667,8 +4667,11 @@ var $;
4667
4667
  }
4668
4668
  click(event) {
4669
4669
  const cb = $mol_wire_sync(this.$.$mol_dom_context.navigator.clipboard);
4670
- cb.writeText(this.text());
4671
- cb.write(this.attachments());
4670
+ cb.writeText?.(this.text());
4671
+ cb.write?.(this.attachments());
4672
+ if (cb.writeText === undefined && cb.write === undefined) {
4673
+ throw new Error("doesn't support copy to clipoard");
4674
+ }
4672
4675
  }
4673
4676
  }
4674
4677
  __decorate([