Add about page & setting to open links with electron

This commit is contained in:
Vendicated
2023-04-05 17:55:49 +02:00
parent 17150503d2
commit 1980606e03
6 changed files with 93 additions and 32 deletions

View File

@@ -1,5 +1,6 @@
import { BrowserWindow } from "electron";
import { join } from "path";
import { STATIC_DIR } from "shared/paths";
export function createSplashWindow() {
const splash = new BrowserWindow({
@@ -12,7 +13,7 @@ export function createSplashWindow() {
maximizable: false
});
splash.loadFile(join(__dirname, "..", "..", "static", "splash.html"));
splash.loadFile(join(STATIC_DIR, "splash.html"));
return splash;
}