2025-06-21 23:30:33 +03:00

12 lines
312 B
JavaScript

'use strict';
async function copyToClipboard(textToCopy) {
if (!textToCopy) {
throw new Error(`Text to copy to the clipboard can't be undefined`);
}
await navigator.clipboard.writeText(textToCopy);
}
exports.copyToClipboard = copyToClipboard;
//# sourceMappingURL=clipboard.service.cjs.map