Skip to content

Instantly share code, notes, and snippets.

@mnquintana
Created Jan 29, 2018
Embed
What would you like to do?
Path 1: The Shortcut
// ==============
// Main process
// ==============
const mainWindow = new BrowserWindow({ width: 800, height: 800 });
mainWindow.loadURL(‘https://<remote-web-app-goes-here>’);
// ==============
// Guest page (remote web app)
// ==============
const {remote} = require(‘electron’);
remote.app.setBadgeCount(9001);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment