- From: Thomas Allmer <notifications@github.com>
- Date: Wed, 10 Nov 2021 14:41:38 -0800
- To: w3c/clipboard-apis <clipboard-apis@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 10 November 2021 22:41:51 UTC
it seems to no longer throw an error for `image/svg+xml` but when testing it did not let me paste it into powerpoint or the finder (while it works fine with a png) I tested via this code ```js setTimeout(async () => { try { const imgURL = 'test.svg'; // using test.png works const data = await fetch(imgURL); const blob = await data.blob(); await navigator.clipboard.write([ new ClipboardItem({ [blob.type]: blob }) ]); console.log('Image copied.'); } catch(e) { console.error(e, e.message); } }, 1000); ``` is that supposed to work? tested in chrome 95 -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/w3c/clipboard-apis/issues/92#issuecomment-965811423
Received on Wednesday, 10 November 2021 22:41:51 UTC