Basic auth check with firebase.

This commit is contained in:
Patrick Fic
2025-03-11 16:49:23 -07:00
parent 69c504c0c6
commit e0cec62e13
14 changed files with 124 additions and 312 deletions

View File

@@ -1,5 +1,5 @@
import { electronApp, is, optimizer } from "@electron-toolkit/utils";
import { app, BrowserWindow, shell } from "electron";
import { app, BrowserWindow, shell, webContents } from "electron";
import log from "electron-log/main";
import { join } from "path";
import icon from "../../resources/icon.png?asset";
@@ -16,6 +16,7 @@ function createWindow(): void {
webPreferences: {
preload: join(__dirname, "../preload/index.js"),
sandbox: false,
devTools: true,
},
});
@@ -35,6 +36,9 @@ function createWindow(): void {
} else {
mainWindow.loadFile(join(__dirname, "../renderer/index.html"));
}
if (import.meta.env.DEV) {
mainWindow.webContents.openDevTools();
}
}
// This method will be called when Electron has finished