mol_dump_lib 0.0.244 → 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/node.deps.json +1 -1
- package/node.js +5 -2
- package/node.js.map +1 -1
- package/node.mjs +5 -2
- package/node.test.js +5 -2
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.deps.json +1 -1
- package/web.js +5 -2
- package/web.js.map +1 -1
- package/web.mjs +5 -2
package/node.js
CHANGED
|
@@ -5155,8 +5155,11 @@ var $;
|
|
|
5155
5155
|
}
|
|
5156
5156
|
click(event) {
|
|
5157
5157
|
const cb = $mol_wire_sync(this.$.$mol_dom_context.navigator.clipboard);
|
|
5158
|
-
cb.writeText(this.text());
|
|
5159
|
-
cb.write(this.attachments());
|
|
5158
|
+
cb.writeText?.(this.text());
|
|
5159
|
+
cb.write?.(this.attachments());
|
|
5160
|
+
if (cb.writeText === undefined && cb.write === undefined) {
|
|
5161
|
+
throw new Error("doesn't support copy to clipoard");
|
|
5162
|
+
}
|
|
5160
5163
|
}
|
|
5161
5164
|
}
|
|
5162
5165
|
__decorate([
|