summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Morrow <victor.j.morrow@gmail.com>2018-12-24 18:06:01 -0500
committerVictor Morrow <victor.j.morrow@gmail.com>2018-12-24 18:06:01 -0500
commitf1ffa7efaa47f01d3629969f9ac9b4838fe23cc5 (patch)
tree293cc33f87f72674993d536b9148ee118a8f2218
parent64efca6eb5dc6c424f44e709689814056017bc50 (diff)
Update Window Size Fix
-rw-r--r--src/index.js14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/index.js b/src/index.js
index 107f411..97af24f 100644
--- a/src/index.js
+++ b/src/index.js
@@ -301,7 +301,19 @@ if (process.env.ELECTRON_RUN_AS_NODE || cmd.terminal) {
})
}
function createUpdateWindow () {
- let updateWin = new BrowserWindow({ width: 300, height: 150, icon: icon, autoHideMenuBar: true, resizable: false , show: false})
+ let width
+ let height
+ if (/^win/.test(process.platform)) {
+ width = 300
+ height = 200
+ } else if (/^darwin/.test(process.platform)) {
+ width = 300
+ height = 150
+ } else {
+ width = 300
+ height = 150
+ }
+ let updateWin = new BrowserWindow({ width, height, icon: icon, autoHideMenuBar: true, resizable: false , show: false})
let onComplete = () => {
updateWin.close()
createTray()