Skip to content

Instantly share code, notes, and snippets.

@MarshallOfSound
Created November 2, 2019 23:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MarshallOfSound/632cd7fc05eaee4c1c13cfc8a02a8d1f to your computer and use it in GitHub Desktop.
Save MarshallOfSound/632cd7fc05eaee4c1c13cfc8a02a8d1f to your computer and use it in GitHub Desktop.
Electron Fiddle Gist
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hello World!</title>
</head>
<body>
<h1>Hello World!</h1>
<!-- All of the Node.js APIs are available in this renderer process. -->
We are using Node.js <script>document.write(process.versions.node)</script>,
Chromium <script>document.write(process.versions.chrome)</script>,
and Electron <script>document.write(process.versions.electron)</script>.
<script>
// You can also require other files to run in this process
require('./renderer.js')
</script>
</body>
</html>
const app = require("electron").app;
console.log("Starting main process...");
app.on("ready", () => {
console.log("Starting app.on.ready event...");
});
console.log("Main process started.");
// This file is required by the index.html file and will
// be executed in the renderer process for that window.
// All of the Node.js APIs are available in this process.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment