Skip to content

Commit

Permalink
⬆️ helloworld.
Browse files Browse the repository at this point in the history
  • Loading branch information
hokein committed May 21, 2016
1 parent fc40831 commit 9b1254c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
19 changes: 8 additions & 11 deletions helloworld/main.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
'use strict';
const {app, BrowserWindow} = require('electron');

var app = require('app');
var BrowserWindow = require('browser-window');
let mainWindow;

var mainWindow = null;
app.on('ready', () => {
mainWindow = new BrowserWindow({
height: 600,
width: 800
});

app.on('ready', function() {
mainWindow = new BrowserWindow({
height: 600,
width: 800
});

mainWindow.loadURL('file://' + __dirname + '/index.html');
mainWindow.loadURL('file://' + __dirname + '/index.html');
});
2 changes: 1 addition & 1 deletion helloworld/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "helloworld",
"version": "0.0.1",
"version": "1.0.1",
"main": "main.js"
}

0 comments on commit 9b1254c

Please sign in to comment.