fix lint
This commit is contained in:
parent
904525a084
commit
bafc51e4a6
@ -34,11 +34,10 @@ function init() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// This method will be called when Electron has finished loading
|
// This method will be called when Electron has finished loading
|
||||||
app.on("ready", async () => {
|
app.whenReady().then(async () => {
|
||||||
await settings.init();
|
await settings.init();
|
||||||
|
|
||||||
const logLevel = settings.get("log_level");
|
setLogLevel(settings.get("log_level") || "info");
|
||||||
setLogLevel(logLevel || "info");
|
|
||||||
|
|
||||||
autoUpdater.init();
|
autoUpdater.init();
|
||||||
|
|
||||||
|
@ -84,13 +84,11 @@ export function createWindow() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
mainWindow.once("ready-to-show", () => {
|
mainWindow.once("ready-to-show", () => {
|
||||||
(async () => {
|
// appView?.webContents.openDevTools({
|
||||||
// appView?.webContents.openDevTools({
|
// mode: "detach",
|
||||||
// mode: "detach",
|
// });
|
||||||
// });
|
mainWindow?.show();
|
||||||
mainWindow?.show();
|
// mainWindow?.webContents.openDevTools({ mode: "detach" });
|
||||||
// mainWindow?.webContents.openDevTools({ mode: "detach" });
|
|
||||||
})();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
mainWindow.webContents.on("did-finish-load", () => {
|
mainWindow.webContents.on("did-finish-load", () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user