nicehero
commited on
Commit
·
7a6991d
1
Parent(s):
ff57cda
index.html
Browse files- static/index.html +0 -2
static/index.html
CHANGED
|
@@ -640,8 +640,6 @@ window.onload = function() {
|
|
| 640 |
//await navigator.clipboard.writeText(tempCanvas.toDataURL("image/jpeg", 0.9));
|
| 641 |
const response = await fetch(tempCanvas.toDataURL("image/png"));
|
| 642 |
const blob = await response.blob();
|
| 643 |
-
const item = new ClipboardItem({ [blob.type]: blob });
|
| 644 |
-
await navigator.clipboard.write([item]);
|
| 645 |
|
| 646 |
const img = document.getElementById('outputImg');
|
| 647 |
img.src = tempCanvas.toDataURL("image/jpeg");
|
|
|
|
| 640 |
//await navigator.clipboard.writeText(tempCanvas.toDataURL("image/jpeg", 0.9));
|
| 641 |
const response = await fetch(tempCanvas.toDataURL("image/png"));
|
| 642 |
const blob = await response.blob();
|
|
|
|
|
|
|
| 643 |
|
| 644 |
const img = document.getElementById('outputImg');
|
| 645 |
img.src = tempCanvas.toDataURL("image/jpeg");
|