mirror of https://github.com/keeweb/keeweb
fixed dev app icon
parent
db31e65cdf
commit
6e7f2c570f
|
@ -54,6 +54,7 @@ const defaultBgColor = '#282C34';
|
|||
|
||||
perfTimestamps && perfTimestamps.push({ name: 'defining args', ts: process.hrtime() });
|
||||
|
||||
setDevAppIcon();
|
||||
setEnv();
|
||||
restorePreferences();
|
||||
|
||||
|
@ -556,6 +557,15 @@ function deleteRecursive(dir) {
|
|||
fs.rmdirSync(dir);
|
||||
}
|
||||
|
||||
function setDevAppIcon() {
|
||||
if (isDev && htmlPath) {
|
||||
const icon = electron.nativeImage.createFromPath(
|
||||
path.join(__dirname, '../graphics/512x512.png')
|
||||
);
|
||||
app.dock.setIcon(icon);
|
||||
}
|
||||
}
|
||||
|
||||
// When sending a PUT XMLHttpRequest Chromium includes the header "Origin: file://".
|
||||
// This confuses some WebDAV clients, notably OwnCloud.
|
||||
// The header is invalid, so removing it everywhere it occurs should do no harm.
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 80 KiB |
Loading…
Reference in New Issue