Initial commit
This commit is contained in:
19
src/main/mainWindow.ts
Normal file
19
src/main/mainWindow.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import { BrowserWindow } from "electron";
|
||||
import { join } from "path";
|
||||
|
||||
export function createMainWindow() {
|
||||
const win = new BrowserWindow({
|
||||
show: false,
|
||||
webPreferences: {
|
||||
nodeIntegration: false,
|
||||
sandbox: true,
|
||||
contextIsolation: true,
|
||||
devTools: true,
|
||||
preload: join(__dirname, "preload.js")
|
||||
}
|
||||
});
|
||||
|
||||
win.loadURL("https://discord.com/app");
|
||||
|
||||
return win;
|
||||
}
|
||||
Reference in New Issue
Block a user