feat: custom user agent (#121)

Co-authored-by: Jef LeCompte <jeffreylec@gmail.com>
This commit is contained in:
admon84
2020-09-20 13:56:47 -06:00
committed by GitHub
parent 252459d5d3
commit d9be3fe618
3 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -55,7 +55,7 @@ const page = {
width: 1920,
height: 1080,
navigationTimeout: Number(process.env.PAGE_TIMEOUT ?? 30000),
userAgent: 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36'
userAgent: process.env.USER_AGENT ?? 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36'
};
const store = {