Emit the message as an event
This commit is contained in:
parent
794f89abf5
commit
cec6895e67
2 changed files with 5 additions and 0 deletions
|
@ -162,6 +162,10 @@ void Window::OnDevToolsClosed() {
|
|||
devtools_web_contents_.Reset();
|
||||
}
|
||||
|
||||
void Window::OnExecuteWindowsCommand(int command_id) {
|
||||
Emit("app-command", command_id);
|
||||
}
|
||||
|
||||
// static
|
||||
mate::Wrappable* Window::New(v8::Isolate* isolate,
|
||||
const mate::Dictionary& options) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue