Skip to content

Commit

Permalink
Fix window creation order bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dcrousso committed Dec 12, 2016
1 parent 2dc5f03 commit 22ea711
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ function hideBrowser() {
}

function toggleBrowser(bounds) {
if (!browser)
createBrowser();

if (browser.isVisible())
hideBrowser();
else
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "GIFBar",
"productName": "GIFBar",
"version": "1.3.0",
"version": "1.3.1",
"description": "A system tray icon that helps you find the perfect GIF",
"scripts": {
"start": "electron .",
Expand Down

0 comments on commit 22ea711

Please sign in to comment.