electron show property is set to false by default now.

This commit is contained in:
Carlos Jimenez 2018-08-30 12:11:06 +02:00
parent 87b0908ee4
commit 2ef19c8640
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@
import Nightmare from 'nightmare';
export default function createNightmare(width = 1280, height = 720) {
const nightmare = new Nightmare({show: true, typeInterval: 10, x: 0, y: 0}).viewport(width, height);
const nightmare = new Nightmare({show: false, typeInterval: 10, x: 0, y: 0}).viewport(width, height);
nightmare.on('page', (type, message, error) => {
fail(error);