Initial commit
This commit is contained in:
18
src/main/splash.ts
Normal file
18
src/main/splash.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
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
|
||||
});
|
||||
|
||||
splash.loadFile(join(__dirname, "..", "static", "splash.html"));
|
||||
|
||||
return splash;
|
||||
}
|
||||
Reference in New Issue
Block a user