The window open handler response must be an object, but was instead of type 'undefined'.
Open
- 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.