Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

Open a new Window and load specific route #993

Open
vkiranmaniya opened this issue Mar 17, 2020 · 2 comments
Open

Open a new Window and load specific route #993

vkiranmaniya opened this issue Mar 17, 2020 · 2 comments

Comments

@vkiranmaniya
Copy link

Multiple Window with the specific route

When the renderer process emits an event, the main process creates a new window and loads a specific route in the window. Emitting and listening to the event are fairly simple as documentation but how to load route from the main process?

@vkiranmaniya
Copy link
Author

The Initial window loads url as

const winURL = process.env.NODE_ENV === 'development' ?
    `http://localhost:9080` :
    `file://${__dirname}/index.html`

is there any workaround to load specific route in newly created dialog window?

@namila007
Copy link

namila007 commented Apr 4, 2020

check this Window Create

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants