mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-08 00:43:54 +00:00
5 lines
181 B
TypeScript
5 lines
181 B
TypeScript
// we need to this as a promise because safari
|
|
export default async function copyToClipboard(text: string) {
|
|
setTimeout(async () => await navigator.clipboard?.writeText(text));
|
|
}
|