Open ramiroaraujo opened 1 year ago
I'll fix the internals in the next build like so:
let text = '';
if (typeof value === 'number') {
text = value.toString();
}
if (typeof value !== 'string') {
text = JSON.stringify(value);
}
if (text) {
await clipboard.writeText(text);
}
@ramiroaraujo Can you confirm that this works for you now?
Example:
I know that if correctly typed it will not allow for a non-string to be passed, but I think it should either error out or do a
.toString()