Basic auth check with firebase.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user