Page an in webview in nwjs calls the window.open method to open page b, if page b can operate page a.

1. I made a shell out of nwjs. The webview tag is used in it. The
webview tag listens for the newwindow method

_webview.addEventListener("newwindow", (e) => {
    nw.Window.open(e.targetUrl, {
        new_instance: false,
        focus: true,
    }, (new_win) => {
    });
});

because targeturl needs to be logged in to display, after calling the nw.Window.open method, it jumps to the login page.
how can I keep the login on the page they can open with the nw.Window.open method?

Aug.23,2021

No.


Hello, have you solved your problem

Menu