Created
January 29, 2018 21:46
-
-
Save mnquintana/0832f2b1ea0e2be63277d126da99c92a to your computer and use it in GitHub Desktop.
Path 1: The Shortcut
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ============== | |
// Main process | |
// ============== | |
const mainWindow = new BrowserWindow({ width: 800, height: 800 }); | |
mainWindow.loadURL(‘https://<remote-web-app-goes-here>’); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ============== | |
// 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