|
@@ -106,7 +106,7 @@ class Webshot extends CallableInstance<[Tweet[], (...args) => void, number], Pro
|
|
|
width: width / zoomFactor,
|
|
|
height: height / zoomFactor,
|
|
|
})
|
|
|
- .then(() => page.route('*:\/\/video.twimg.com\/**', route => { route.abort(); }))
|
|
|
+ .then(() => page.route('*:\/\/video.twimg.com\/**', route => route.abort()))
|
|
|
.then(goto)
|
|
|
.then(() => Promise.race([
|
|
|
page.waitForSelector('article', {state: 'attached', timeout: getTimeout()}),
|