-
-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathoptions.js
More file actions
34 lines (34 loc) · 953 Bytes
/
options.js
File metadata and controls
34 lines (34 loc) · 953 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
module.exports = options = (headless, start) => {
const options = {
blockCrashLogs: false,
disableSpins: false,
hostNotificationLang: 'PT_BR',
logConsole: false,
//popup: true,
viewport: {
width: 1920,
height: 1200
},
popup: 3012,
defaultViewport: null,
sessionId: 'Gramont-Bot',
headless: headless,
qrTimeout: 0,
authTimeout: 60,
restartOnCrash: start,
cacheEnabled: true,
useChrome: true,
killProcessOnBrowserClose: true,
throwErrorOnTosBlock: true,
chromiumArgs: [
'--no-sandbox',
'--disable-setuid-sandbox',
'--aggressive-cache-discard',
'--disable-cache',
'--disable-application-cache',
'--disable-offline-load-stale-cache',
'--disk-cache-size=0'
]
}
return options
}