From 1523a8d7c2a88775b5b222fc0676fbdd295afa1d Mon Sep 17 00:00:00 2001 From: mmouterde Date: Tue, 27 Jun 2017 22:38:44 +0200 Subject: [PATCH] add hello-word demo (#6) --- demo/app.js | 16 ++++++++++++++++ demo/electron-tabs.html | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 demo/app.js create mode 100644 demo/electron-tabs.html diff --git a/demo/app.js b/demo/app.js new file mode 100644 index 0000000..920790d --- /dev/null +++ b/demo/app.js @@ -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(); + }); + +}); diff --git a/demo/electron-tabs.html b/demo/electron-tabs.html new file mode 100644 index 0000000..6799d19 --- /dev/null +++ b/demo/electron-tabs.html @@ -0,0 +1,36 @@ + + + + + + + + +
+
+
+
+
+ + + + +