Fix for "Image could not be created error" on macOS

When attempting to run the app, an error would occur when attemting
to set the browser window platform specific icon. After tweaking to
png, the electron app now launches correctly for macOS 10.15.4
This commit is contained in:
Mitch Mikusek 2020-05-23 16:46:16 -07:00
parent 8726638a23
commit 1bbb6eaf38

View File

@ -195,7 +195,7 @@ function createMenu() {
function getPlatformIcon(filename){
const opSys = process.platform
if (opSys === 'darwin') {
filename = filename + '.icns'
filename = filename + '.png'
} else if (opSys === 'win32') {
filename = filename + '.ico'
} else {