Skip to content

Commit

Permalink
Add debug flag and enable headless mode by default
Browse files Browse the repository at this point in the history
  • Loading branch information
nibble-4bits committed Aug 14, 2020
1 parent 90714bd commit 44d85b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "codewars-solutions-scraper",
"version": "1.0.0",
"version": "1.0.1",
"description": "A scraper that gets the solutions of all of the CodeWars katas you have solved",
"main": "src/main.js",
"bin": {
Expand Down
3 changes: 2 additions & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const { exit } = require('process');

const extensions = require('./extensions.js');

const DEBUG_FLAG = false;
const CODEWARS_BASE_URL = 'https://www.codewars.com';
const OUTPUT_DIR_NAME = 'my_solutions';

Expand Down Expand Up @@ -56,7 +57,7 @@ async function main() {
}

const browser = await puppeteer.launch({
headless: false
headless: !DEBUG_FLAG
});

const page = await browser.newPage();
Expand Down

0 comments on commit 44d85b9

Please sign in to comment.