feat: run prettier

This commit is contained in:
JellyBrick
2023-11-30 11:59:27 +09:00
parent 44c42310f1
commit a3104fda4b
116 changed files with 2928 additions and 1254 deletions

View File

@ -165,7 +165,10 @@ const initHook = (win: BrowserWindow) => {
const mainPlugin = getAllLoadedMainPlugins()[id];
if (mainPlugin) {
if (config.enabled && typeof mainPlugin.backend !== 'function') {
mainPlugin.backend?.onConfigChange?.call(mainPlugin.backend, config);
mainPlugin.backend?.onConfigChange?.call(
mainPlugin.backend,
config,
);
}
}
@ -282,7 +285,6 @@ async function createMainWindow() {
await loadAllMainPlugins(win);
if (windowPosition) {
const { x: windowX, y: windowY } = windowPosition;
const winSize = win.getSize();
@ -317,7 +319,6 @@ async function createMainWindow() {
}
}
if (windowMaximized) {
win.maximize();
}