Skip to content

Commit 9cfe68d

Browse files
committed
Call app.setName on mac store build
1 parent b0e115c commit 9cfe68d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

main.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ const app = electron.app
88

99
const debug = /--debug/.test(process.argv[2])
1010

11+
if (process.mas) app.setName('Electron APIs')
12+
1113
var mainWindow = null
1214

1315
function initialize () {
@@ -21,7 +23,7 @@ function initialize () {
2123
width: 1080,
2224
minWidth: 680,
2325
height: 840,
24-
title: process.mas ? 'Electron APIs' : app.getName()
26+
title: app.getName()
2527
}
2628

2729
if (process.platform === 'linux') {

0 commit comments

Comments
 (0)