electron / electron/remote

The window open handler response must be an object, but was instead of type 'undefined'.

Open
#120 1 comment 2 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
411
Forks
53
Avg merge
3m
Merged PRs (30d)
1

Description

I try using webcontents.setWindowOpenHandler in renderer process, and the console prints "The window open handler response must be an object, but was instead of type 'undefined'."
Here is my code:
```
tab.webcontents.setWindowOpenHandler((details) => {
this.new(details.url);
return {
action: "deny",
}
});
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.