project-client/src/main/splash.ts

19 lines
421 B
TypeScript
Raw Normal View History

2023-03-30 08:02:30 +09:00
import { BrowserWindow } from "electron";
import { join } from "path";
export function createSplashWindow() {
const splash = new BrowserWindow({
transparent: true,
frame: false,
height: 350,
width: 300,
center: true,
resizable: false,
maximizable: false
});
2023-04-04 07:41:52 +09:00
splash.loadFile(join(__dirname, "..", "..", "static", "splash.html"));
2023-03-30 08:02:30 +09:00
return splash;
}