Fallback to sticker element screenshot
This commit is contained in:
@@ -1525,10 +1525,6 @@ async function downloadDomStickerThroughScreenshot(p, request) {
|
||||
return { contentType: "image/png", buffer: canvasCapture.buffer };
|
||||
}
|
||||
|
||||
if (canvasCapture.hasCanvas && !canvasCapture.blocked) {
|
||||
throw new Error(`${kindLabel} canvas is blank.`);
|
||||
}
|
||||
|
||||
let buffer;
|
||||
if (request?.acceptSmall) {
|
||||
buffer = await screenshotClip(await currentBoxOrMeta());
|
||||
|
||||
Reference in New Issue
Block a user