Added check for platform before calling app.dock

This commit is contained in:
b3nj4m1n 2020-05-22 18:47:26 +02:00
parent 99b687244c
commit fadea36232
1 changed files with 1 additions and 1 deletions

View File

@ -609,7 +609,7 @@ function deleteRecursive(dir) {
}
function setDevAppIcon() {
if (isDev && htmlPath) {
if (isDev && htmlPath && process.platform === 'darwin') {
const icon = electron.nativeImage.createFromPath(
path.join(__dirname, '../graphics/512x512.png')
);