|
@@ -183,6 +183,8 @@ class Webshot extends CallableInstance<[Tweets, (...args) => void, number], Prom
|
|
})
|
|
})
|
|
.then(() => chainPromises(morePostProcessings.map(func => () => func(page))))
|
|
.then(() => chainPromises(morePostProcessings.map(func => () => func(page))))
|
|
.then(() => promisify(setTimeout)(getTimeout()))
|
|
.then(() => promisify(setTimeout)(getTimeout()))
|
|
|
|
+ // hide highlight of retweet header
|
|
|
|
+ .then(() => page.evaluate(() => (document.activeElement as unknown as HTMLOrSVGElement).blur()))
|
|
.then(() => page.screenshot())
|
|
.then(() => page.screenshot())
|
|
.then(screenshot => {
|
|
.then(screenshot => {
|
|
new PNG({
|
|
new PNG({
|