hotfix: make HEADLESS default true

Signed-off-by: Jef LeCompte <jeffreylec@gmail.com>
This commit is contained in:
Jef LeCompte
2020-09-20 10:39:44 -04:00
parent d1a5aa1f02
commit 3de1f81eb1
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -1,5 +1,7 @@
EMAIL_USERNAME="youremail@gmail.com"
EMAIL_PASSWORD="secretpassword"
HEADLESS="true"
LOG_LEVEL="info"
NOTIFICATION_TEST="false"
OPEN_BROWSER="true"
PAGE_TIMEOUT="30000"
@@ -16,5 +18,3 @@ STORES="bestbuy,bandh,nvidia"
SCREENSHOT="true"
TELEGRAM_ACCESS_TOKEN=""
TELEGRAM_CHAT_ID="1234"
HEADLESS="true"
LOG_LEVEL="info"
+2 -2
View File
@@ -64,8 +64,8 @@ Here is a list of variables that you can use to customize your newly copied `.en
|:---:|---|---|
| `EMAIL_USERNAME` | Gmail address | E.g.: `jensen.robbed.us@gmail.com` |
| `EMAIL_PASSWORD` | Gmail password | See below if you have MFA |
| `HEADLESS` | Puppeteer to run headless or not (Debugging Purposes) |
| `LOG_LEVEL` | [Logging levels](https://github.com/winstonjs/winston#logging-levels) (Debugging Purposes) |
| `HEADLESS` | Puppeteer to run headless or not | Debugging related, default: `true` |
| `LOG_LEVEL` | [Logging levels](https://github.com/winstonjs/winston#logging-levels) | Debugging related, default: `info` |
| `NOTIFICATION_TEST` | Test all the notifications configured | Default: `false` |
| `OPEN_BROWSER` | Toggle for whether or not the browser should open when item is found | Default: `true` |
| `PAGE_TIMEOUT` | Navigation Timeout in milliseconds | `0` for infinite, default: `30000` |
+1 -1
View File
@@ -51,7 +51,7 @@ const stores = process.env.STORES ? process.env.STORES.split(',') : ['nvidia'];
const openBrowser = process.env.OPEN_BROWSER === 'true';
const isHeadless = process.env.HEADLESS === 'true';
const isHeadless = process.env.HEADLESS ? process.env.HEADLESS === 'true' : true;
const showOnlyBrands = process.env.SHOW_ONLY_BRANDS ? process.env.SHOW_ONLY_BRANDS.split(',') : [];