Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions dist/template-app/app.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
var app = require('app'); // Module to control application life.
var BrowserWindow = require('browser-window'); // Module to create native browser window.
const electron = require('electron');

// Module to control application life.
const app = electron.app;
// Module to create native browser window.
const BrowserWindow = electron.BrowserWindow;

// Keep a global reference of the window object, if you don't, the window will
// be closed automatically when the JavaScript object is garbage collected.
var mainWindow = null;
let mainWindow;

// Quit when all windows are closed.
app.on('window-all-closed', function() {
Expand All @@ -19,12 +23,8 @@ app.on('window-all-closed', function() {
app.on('ready', function() {
// Create the browser window.
mainWindow = new BrowserWindow({
width: 600,
height: 300,
'min-width': 500,
'min-height': 200,
'accept-first-mouse': true,
'title-bar-style': 'hidden'
width: 740,
height: 470
});

// and load the index.html of the app.
Expand Down
5 changes: 0 additions & 5 deletions dist/template-app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@
<body>
<div class="window">

<!-- .toolbar-header sits at the top of your app -->
<header class="toolbar toolbar-header">
<h1 class="title">Photon</h1>
</header>

<!-- Your app's content goes inside .window-content -->
<div class="window-content">
<div class="pane-group">
Expand Down