nicehero commited on
Commit
e19c1cb
·
verified ·
1 Parent(s): 253a9cf

Upload index.html

Browse files
Files changed (1) hide show
  1. index.html +1 -1
index.html CHANGED
@@ -519,7 +519,7 @@ window.onload = function() {
519
  //await navigator.clipboard.writeText(tempCanvas.toDataURL("image/jpeg", 0.9));
520
  const response = await fetch(tempCanvas.toDataURL("image/png"));
521
  const blob = await response.blob();
522
- const item = new ClipboardItem({ 'image/png': blob });
523
  await navigator.clipboard.write([item]);
524
  });
525
 
 
519
  //await navigator.clipboard.writeText(tempCanvas.toDataURL("image/jpeg", 0.9));
520
  const response = await fetch(tempCanvas.toDataURL("image/png"));
521
  const blob = await response.blob();
522
+ const item = new ClipboardItem({ [blob.type]: blob });
523
  await navigator.clipboard.write([item]);
524
  });
525