mirror of
https://github.com/mempool/mempool.git
synced 2025-04-09 04:18:27 +02:00
Fix RTL locale unfurls
This commit is contained in:
parent
bdbb1dcf8e
commit
aa882aa36a
@ -109,7 +109,10 @@ class Server {
|
||||
page.waitForSelector('meta[property="og:preview:fail"]', { timeout: config.PUPPETEER.RENDER_TIMEOUT || 3000 }).then(() => false)
|
||||
])
|
||||
if (success === true) {
|
||||
const screenshot = await page.screenshot();
|
||||
const screenshot = await page.screenshot({
|
||||
captureBeyondViewport: false,
|
||||
clip: { width: 1200, height: 600, x: 0, y: 0, scale: 1 },
|
||||
});
|
||||
return screenshot;
|
||||
} else if (success === false) {
|
||||
logger.warn(`failed to render ${path} for ${action} due to client-side error, e.g. requested an invalid txid`);
|
||||
|
Loading…
x
Reference in New Issue
Block a user