makethisbetter 1.28.2 → 1.28.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/makethisbetter.cjs +8 -8
- package/dist/makethisbetter.cjs.map +1 -1
- package/dist/makethisbetter.esm.js +77 -75
- package/dist/makethisbetter.esm.js.map +1 -1
- package/dist/makethisbetter.js +1 -1
- package/dist/makethisbetter.js.map +1 -1
- package/dist/makethisbetter.standalone.js +3 -1
- package/dist/makethisbetter.standalone.js.map +1 -1
- package/dist/screenshot/capture.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/screenshot/capture.ts +6 -0
|
@@ -1264,7 +1264,9 @@ const sr = 200, ar = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAA
|
|
|
1264
1264
|
async function or(e, t) {
|
|
1265
1265
|
try {
|
|
1266
1266
|
if (t?.aborted) return null;
|
|
1267
|
-
const [{ toJpeg: i }, r] = await Promise.all([Re(), Ft()])
|
|
1267
|
+
const [{ toJpeg: i }, r] = await Promise.all([Re(), Ft()]);
|
|
1268
|
+
if (await new Promise((c) => setTimeout(c, 0)), t?.aborted) return null;
|
|
1269
|
+
const n = document.body.getBoundingClientRect(), s = gi(), a = { x: window.scrollX, y: window.scrollY }, o = mr(document.body), l = await i(document.body, {
|
|
1268
1270
|
quality: 0.85,
|
|
1269
1271
|
imagePlaceholder: ar,
|
|
1270
1272
|
resourceUrlResolver: e,
|