diff --git a/runbot/static/src/js/runbot.js b/runbot/static/src/js/runbot.js index 527fdb99..49ffee50 100644 --- a/runbot/static/src/js/runbot.js +++ b/runbot/static/src/js/runbot.js @@ -42,3 +42,11 @@ // new Clipboard('.clipbtn'); //}); })(jQuery); + +function copyToClipboard(text) { + if (!navigator.clipboard) { + console.error('Clipboard not supported'); + return; + } + navigator.clipboard.writeText(text); + } diff --git a/runbot/templates/frontend.xml b/runbot/templates/frontend.xml index 5c2b225b..d8e2ffee 100644 --- a/runbot/templates/frontend.xml +++ b/runbot/templates/frontend.xml @@ -32,6 +32,7 @@