mirror of
https://github.com/Vencord/Vesktop.git
synced 2025-02-24 14:15:09 +00:00
fixed formatting, remove unnecssary code
This commit is contained in:
parent
7713a46394
commit
a0fc191ed9
2 changed files with 5 additions and 9 deletions
|
@ -43,16 +43,12 @@ handleSync(
|
||||||
);
|
);
|
||||||
|
|
||||||
handleSync(IpcEvents.GET_TRAY_ICON, () => {
|
handleSync(IpcEvents.GET_TRAY_ICON, () => {
|
||||||
try {
|
|
||||||
if (!Settings.store.trayIconPath) return nativeImage.createFromPath(ICON_PATH).toDataURL();
|
if (!Settings.store.trayIconPath) return nativeImage.createFromPath(ICON_PATH).toDataURL();
|
||||||
|
|
||||||
const img = nativeImage.createFromPath(Settings.store.trayIconPath).resize({ width: 64, height: 64 });
|
const img = nativeImage.createFromPath(Settings.store.trayIconPath).resize({ width: 64, height: 64 });
|
||||||
if (img.isEmpty()) return nativeImage.createFromPath(ICON_PATH).toDataURL();
|
if (img.isEmpty()) return nativeImage.createFromPath(ICON_PATH).toDataURL();
|
||||||
|
|
||||||
return img.toDataURL();
|
return img.toDataURL();
|
||||||
} catch (error) {
|
|
||||||
return "no";
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
handleSync(IpcEvents.AUTOSTART_ENABLED, () => autoStart.isEnabled());
|
handleSync(IpcEvents.AUTOSTART_ENABLED, () => autoStart.isEnabled());
|
||||||
|
|
|
@ -58,7 +58,7 @@
|
||||||
#colMiddle {
|
#colMiddle {
|
||||||
height: 48px;
|
height: 48px;
|
||||||
float: center;
|
float: center;
|
||||||
display: inline;
|
display: inline-block;
|
||||||
position: relative;
|
position: relative;
|
||||||
left: 45%;
|
left: 45%;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue