Spaces:
Sleeping
Sleeping
Ron Au
commited on
Commit
•
dfd3d09
1
Parent(s):
ce70ab2
fix(Safari bug): Fix Save only working on 2nd use
Browse files
static/js/dom-manipulation.js
CHANGED
@@ -111,14 +111,9 @@ const screenshotCard = async () => {
|
|
111 |
console.log(card.querySelector('img.picture'));
|
112 |
console.log(card.querySelector('img.picture').src);
|
113 |
|
114 |
-
let imageUrl = await toPng(card
|
115 |
-
|
116 |
-
|
117 |
-
backgroundColor: 'transparent',
|
118 |
-
style: {
|
119 |
-
transform: 'none',
|
120 |
-
},
|
121 |
-
});
|
122 |
|
123 |
imageUrl = await toPng(card, {
|
124 |
width: 400,
|
|
|
111 |
console.log(card.querySelector('img.picture'));
|
112 |
console.log(card.querySelector('img.picture').src);
|
113 |
|
114 |
+
let imageUrl = await toPng(card);
|
115 |
+
|
116 |
+
/* Repeat for Safari bug */
|
|
|
|
|
|
|
|
|
|
|
117 |
|
118 |
imageUrl = await toPng(card, {
|
119 |
width: 400,
|