Skip to content

Commit

Permalink
Electron shell bootstrapped
Browse files Browse the repository at this point in the history
  • Loading branch information
tikurahul committed Jun 7, 2017
1 parent 5b1a970 commit fca67f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ let w: Electron.BrowserWindow|null = null;

function createWindow(): Electron.BrowserWindow {
log('Creating window.');
w = new BrowserWindow({width: 800, height: 600});
w = new BrowserWindow({width: 1920, height: 1080});
w.loadURL(url.format({
pathname: path.join(__dirname, 'index.html'),
pathname: path.join(path.dirname(__dirname), 'index.html'),
protocol: 'file:',
slashes: true
}));
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "An AppAuth-JS sample with Electron",
"main": "build/index.js",
"scripts": {
"start": "tsc"
"start": "tsc && node_modules/.bin/electron .",
"watch": "tsc --watch & node_modules/.bin/electron ."
},
"keywords": [
"AppAuth-JS",
Expand Down

0 comments on commit fca67f4

Please sign in to comment.