2023-04-10 05:49:50 +09:00
|
|
|
/*
|
|
|
|
* SPDX-License-Identifier: GPL-3.0
|
|
|
|
* Vencord Desktop, a desktop app aiming to give you a snappier Discord Experience
|
|
|
|
* Copyright (c) 2023 Vendicated and Vencord contributors
|
|
|
|
*/
|
|
|
|
|
2023-03-30 08:02:30 +09:00
|
|
|
import { BrowserWindow } from "electron";
|
|
|
|
import { join } from "path";
|
2023-04-11 05:53:44 +09:00
|
|
|
import { SplashProps } from "shared/browserWinProperties";
|
2023-04-06 00:55:49 +09:00
|
|
|
import { STATIC_DIR } from "shared/paths";
|
2023-03-30 08:02:30 +09:00
|
|
|
|
|
|
|
export function createSplashWindow() {
|
2023-04-11 05:53:44 +09:00
|
|
|
const splash = new BrowserWindow(SplashProps);
|
2023-03-30 08:02:30 +09:00
|
|
|
|
2023-04-06 00:55:49 +09:00
|
|
|
splash.loadFile(join(STATIC_DIR, "splash.html"));
|
2023-03-30 08:02:30 +09:00
|
|
|
|
|
|
|
return splash;
|
|
|
|
}
|