Skip to content

devtools-closed event does not fire #6627

Open
@darkf

Description

@darkf

NWJS Version : 0.30.4
Operating System : Windows 8.1

Expected behavior

The devtools-closed event should fire, and the main window should be closed.

Actual behavior

Nothing happens, and nothing is printed.

How to reproduce

Run this, and then close the devtools window:

<script>
const win = nw.Window.get();

win.on("devtools-closed", () => {
    console.log("closing");
    win.close();
});

win.showDevTools();
</script>

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions