Skip to content

Instantly share code, notes, and snippets.

@bpasero
Created August 23, 2018 09:50
Show Gist options
  • Save bpasero/3b84dcac354218bf3d483599ff84ab48 to your computer and use it in GitHub Desktop.
Save bpasero/3b84dcac354218bf3d483599ff84ab48 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>
// Modules to control application life and create native browser window
const {app} = require('electron')
app.setPath("userData", "C:\\Users\\bpasero\\AppData\\Roaming\\test");
// 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