From 22ea711a9f44d8d99f55b72d1b33123703c4b822 Mon Sep 17 00:00:00 2001 From: Devin Rousso Date: Sun, 11 Dec 2016 23:10:23 -0800 Subject: [PATCH] Fix window creation order bug --- index.js | 3 +++ package.json | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index c017bdc..53420fc 100755 --- a/index.js +++ b/index.js @@ -69,6 +69,9 @@ function hideBrowser() { } function toggleBrowser(bounds) { + if (!browser) + createBrowser(); + if (browser.isVisible()) hideBrowser(); else diff --git a/package.json b/package.json index 1b860fb..b4fdf42 100755 --- a/package.json +++ b/package.json @@ -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 .",