Skip to content
This repository was archived by the owner on Nov 15, 2018. It is now read-only.

Commit 4a074c5

Browse files
committed
Fix possible crashbug
1 parent 610b1bb commit 4a074c5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function createWindow () {
3030
browserWindow.save_dimensions = data.save_dimensions
3131
browserWindow.notifications = data.notifications
3232

33-
if (data.save_dimensions) {
33+
if (data.save_dimensions && data.width && data.height) {
3434
browserWindow.setContentSize(data.width, data.height, false)
3535
}
3636

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "home_assistant_electron",
3-
"version": "0.4.0",
3+
"version": "0.4.1",
44
"description": "Create Home Assistant Electron app ==================================",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)