pixijs/floss

Uncaught Exception: TypeError: Cannot use 'in' operator to search for 'detach'

Closed this issue · 0 comments

Steps:

  • Be on Electron v2.0.0-beta.8
  • floss -p test.js -d

Expect:

  • Should see window appear with Developer Tools open on the bottom

Actual

  • Get an error dialog

The bug:

mainWindow.webContents.openDevTools('bottom');

The fix:

mainWindow.webContents.openDevTools({ mode: 'bottom' });

The relevant WebContents docs

Maybe the openDevTools API changed slightly between Electron versions?

Will try to do a PR when I have more time to test a binary.