5

The Nightmare docs don't specify how to set the browser details.

I'm guessing it's like this, but it doesn't work. Any ideas?

const nightmare = new Nightmare({'show': show, 'BrowserWindow': {height: 900}});
Artjom B.
  • 61,146
  • 24
  • 125
  • 222
Richard
  • 14,798
  • 21
  • 70
  • 103

1 Answers1

8

The documentation isn't terrifically clear, but the intent is to show that the Nightmare options are passed to BrowserWindow, effectively using the same options set.

In other words,

const nightmare = new Nightmare({ show: show, height: 900});

... should work.

Ross
  • 2,448
  • 1
  • 21
  • 24