Skip to content

The callback for win.showDevTools() has no arguments #7820

Open
@sysrage

Description

@sysrage

NWJS Version : 0.59.0
Operating System : Windows 10

Expected behavior

As per the NW.js documentation, the callback from win.showDevTools() should be returning a handle to the DevTools window.

Actual behavior

The callback from win.showDevTools() contains no arguments.

How to reproduce

  1. Open the NW.js SDK build and manually open the DevTools window.

  2. Enter the following into the DevTools console:

nw.Window.get().showDevTools(null, (devToolsWindow) => console.log(devToolsWindow));
  1. Note that devToolsWindow is undefined.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions