docs: add system get version info Fiddle example (#20536)

This commit is contained in:
Rik Theunis 2019-10-15 20:17:04 +02:00 committed by Shelley Vohr
parent 5273930f76
commit 16d4ace800
3 changed files with 59 additions and 0 deletions

View file

@ -0,0 +1,25 @@
const { app, BrowserWindow } = require('electron')
let mainWindow = null
function createWindow () {
const windowOptions = {
width: 600,
height: 400,
title: 'Get version information',
webPreferences: {
nodeIntegration: true
}
}
mainWindow = new BrowserWindow(windowOptions)
mainWindow.loadFile('index.html')
mainWindow.on('closed', () => {
mainWindow = null
})
}
app.on('ready', () => {
createWindow()
})