Merge pull request #1513 from b3nj5m1n/fix_app_dock

Added check for platform before calling app.dock
This commit is contained in:
Dimitri Witkowski 2020-05-22 18:58:50 +02:00 committed by GitHub
commit 3b3c95e57c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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')
);