partey_workadventure/desktop/electron/src/serve.ts
2022-02-22 10:49:35 +01:00

10 lines
298 B
TypeScript

import { BrowserWindow } from "electron";
import serve from "electron-serve";
import path from "path";
const customScheme = serve({ directory: path.resolve(__dirname, "..", "local-app", "dist") });
export async function loadCustomScheme(window: BrowserWindow) {
await customScheme(window);
}