Skip to content

Instantly share code, notes, and snippets.

@cjus
Created June 12, 2018 16:12
Show Gist options
  • Select an option

  • Save cjus/2bde2df49976ae714978ae366555388e to your computer and use it in GitHub Desktop.

Select an option

Save cjus/2bde2df49976ae714978ae366555388e to your computer and use it in GitHub Desktop.
loadURL
const startUrl = process.env.ELECTRON_START_URL || url.format({
pathname: path.join(__dirname, '/../build/index.html'),
protocol: 'file:',
slashes: true
});
win.loadURL(startUrl);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment