add hello-word demo (#6)
This commit is contained in:
parent
879c3367b0
commit
1523a8d7c2
2 changed files with 52 additions and 0 deletions
16
demo/app.js
Normal file
16
demo/app.js
Normal file
|
@ -0,0 +1,16 @@
|
|||
const electron = require('electron');
|
||||
const app = electron.app;
|
||||
|
||||
app.setName('electron-tabs-demo');
|
||||
|
||||
|
||||
app.on('ready', function () {
|
||||
|
||||
const mainWindow = new electron.BrowserWindow();
|
||||
mainWindow.loadURL('file://' + __dirname + '/electron-tabs.html');
|
||||
mainWindow.on('ready-to-show', function () {
|
||||
mainWindow.show();
|
||||
mainWindow.focus();
|
||||
});
|
||||
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue