Spaces:
Running
Running
Upload index.html
Browse files- 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({
|
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 |
|