Spaces:
Running
Running
Ron Au
commited on
Commit
•
1ac49a7
1
Parent(s):
b72aaa2
WIP: Safari bugs
Browse files
static/js/dom-manipulation.js
CHANGED
@@ -107,6 +107,7 @@ const setOutput = (mode, state) => {
|
|
107 |
|
108 |
const screenshotCard = async () => {
|
109 |
const card = document.querySelector('.pokecard');
|
|
|
110 |
|
111 |
const imageUrl = await toPng(card, {
|
112 |
width: 400,
|
@@ -117,6 +118,8 @@ const screenshotCard = async () => {
|
|
117 |
},
|
118 |
});
|
119 |
|
|
|
|
|
120 |
return imageUrl;
|
121 |
};
|
122 |
|
|
|
107 |
|
108 |
const screenshotCard = async () => {
|
109 |
const card = document.querySelector('.pokecard');
|
110 |
+
console.log({ card });
|
111 |
|
112 |
const imageUrl = await toPng(card, {
|
113 |
width: 400,
|
|
|
118 |
},
|
119 |
});
|
120 |
|
121 |
+
console.log({ imageUrl });
|
122 |
+
|
123 |
return imageUrl;
|
124 |
};
|
125 |
|