Skip to content

Commit 370980c

Browse files
committed
Dev electron
1 parent 83ec520 commit 370980c

3 files changed

Lines changed: 6 additions & 14 deletions

File tree

electron.js

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,16 @@ function createWindow() {
4141
});
4242
win.on('closed', () => {
4343
windows.delete(win);
44+
if (windows.size === 0) {
45+
app.quit();
46+
}
4447
});
4548

4649
windows.add(win);
4750
}
4851

4952
app.on('window-all-closed', () => {
50-
// app.quit();
53+
app.quit();
5154
});
5255

5356
app.on('ready', createWindow);
@@ -86,17 +89,6 @@ const template = [
8689
{
8790
role: 'window',
8891
submenu: [{ role: 'minimize' }, { role: 'close' }]
89-
},
90-
{
91-
role: 'help',
92-
submenu: [
93-
{
94-
label: 'Learn More',
95-
click() {
96-
require('electron').shell.openExternal('https://electronjs.org');
97-
}
98-
}
99-
]
10092
}
10193
];
10294

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "simples3",
3-
"version": "0.2.1",
3+
"version": "0.2.2",
44
"description": "A simple Amazon s3 browser",
55
"author": "Pop-Code <alex.hermann@pop-code.com>",
66
"private": true,

src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ ReactDOM.render(<Client />, document.getElementById('root'));
88
// If you want your app to work offline and load faster, you can change
99
// unregister() to register() below. Note this comes with some pitfalls.
1010
// Learn more about service workers: http://bit.ly/CRA-PWA
11-
serviceWorker.register();
11+
serviceWorker.unregister();

0 commit comments

Comments
 (0)