From 1756bc92890b7135ef5f014b85378ee959a61a0e Mon Sep 17 00:00:00 2001 From: Maximilian Blazek <68336485+dgtlntv@users.noreply.github.com> Date: Mon, 29 Apr 2024 11:24:30 +0200 Subject: [PATCH] Update copy-to-clipboard.js --- vanilla/templates/static/js/copy-to-clipboard.js | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/vanilla/templates/static/js/copy-to-clipboard.js b/vanilla/templates/static/js/copy-to-clipboard.js index df78cd6..dd0dcf4 100644 --- a/vanilla/templates/static/js/copy-to-clipboard.js +++ b/vanilla/templates/static/js/copy-to-clipboard.js @@ -1,11 +1,3 @@ -(async function clipboard() { - const html = new Blob( - [ - `Button`, - ], - {type: 'text/html'}, - ); - const text = new Blob(['Button'], {type: 'text/plain'}); - const data = new ClipboardItem({'text/html': html, 'text/plain': text}); - await navigator.clipboard.write([data]); +(function helloWorld() { + console.log('hello world :)'); });