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

Commit

Permalink
Fix possible crashbug
Browse files Browse the repository at this point in the history
  • Loading branch information
matthinc committed May 31, 2017
1 parent 610b1bb commit 4a074c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function createWindow () {
browserWindow.save_dimensions = data.save_dimensions
browserWindow.notifications = data.notifications

if (data.save_dimensions) {
if (data.save_dimensions && data.width && data.height) {
browserWindow.setContentSize(data.width, data.height, false)
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "home_assistant_electron",
"version": "0.4.0",
"version": "0.4.1",
"description": "Create Home Assistant Electron app ==================================",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 4a074c5

Please sign in to comment.