mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-19 14:14:17 +00:00
feat: context menu actions (#414)
* refactor: abstract copy to clipboard logic * feat: add actions to <EventBlock> context menu
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
// we need to this as a promise because safari
|
||||
export default async function copyToClipboard(text: string) {
|
||||
setTimeout(async () => await navigator.clipboard.writeText(text));
|
||||
}
|
||||
Reference in New Issue
Block a user