partey_workadventure/desktop/electron/src/serve.ts

10 lines
296 B
TypeScript
Raw Normal View History

2022-02-20 20:30:53 +01:00
import { BrowserWindow } from "electron";
import serve from "electron-serve";
import path from "path";
let customScheme = serve({ directory: path.resolve(__dirname, "..", "local-app", "dist") });
export async function loadCustomScheme(window: BrowserWindow) {
await customScheme(window);
}