mirror of
https://github.com/Vencord/Vesktop.git
synced 2025-02-24 06:05: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, () => {
|
||||
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 });
|
||||
if (img.isEmpty()) return nativeImage.createFromPath(ICON_PATH).toDataURL();
|
||||
const img = nativeImage.createFromPath(Settings.store.trayIconPath).resize({ width: 64, height: 64 });
|
||||
if (img.isEmpty()) return nativeImage.createFromPath(ICON_PATH).toDataURL();
|
||||
|
||||
return img.toDataURL();
|
||||
} catch (error) {
|
||||
return "no";
|
||||
}
|
||||
return img.toDataURL();
|
||||
});
|
||||
|
||||
handleSync(IpcEvents.AUTOSTART_ENABLED, () => autoStart.isEnabled());
|
||||
|
|
|
@ -58,7 +58,7 @@
|
|||
#colMiddle {
|
||||
height: 48px;
|
||||
float: center;
|
||||
display: inline;
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
left: 45%;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue