remote icon indicating copy to clipboard operation
remote copied to clipboard

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

Open FlysoftBeta opened this issue 3 years ago • 1 comments

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",
                }
            });

FlysoftBeta avatar Mar 10 '22 14:03 FlysoftBeta

https://github.com/electron/electron/issues/30017#issuecomment-877398729

FlysoftBeta avatar Mar 10 '22 14:03 FlysoftBeta