mirror of https://github.com/keeweb/keeweb.git
Added check for platform before calling app.dock
This commit is contained in:
parent
99b687244c
commit
fadea36232
|
@ -609,7 +609,7 @@ function deleteRecursive(dir) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function setDevAppIcon() {
|
function setDevAppIcon() {
|
||||||
if (isDev && htmlPath) {
|
if (isDev && htmlPath && process.platform === 'darwin') {
|
||||||
const icon = electron.nativeImage.createFromPath(
|
const icon = electron.nativeImage.createFromPath(
|
||||||
path.join(__dirname, '../graphics/512x512.png')
|
path.join(__dirname, '../graphics/512x512.png')
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue