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