diff --git a/app/routes/home/controller.js b/app/routes/home/controller.js index e620adf..67e157a 100644 --- a/app/routes/home/controller.js +++ b/app/routes/home/controller.js @@ -9,15 +9,16 @@ export default class HomeController extends Controller { return 'An error occurred, please try again'; } - get copyContent() { + // REMINDER: copy to clipboard only works on HTTPS - not locally + async copyContent() { let text = document.getElementById('copyTextToClipboard').innerHTML; - const copy = async () => { + console.log(text, 'text') try { await navigator.clipboard.writeText(text); alert('Content copied to clipboard'); } catch (err) { - alert.error('Failed to copy: ', err); + alert('Failed to copy: ', err); } - } + // } } }