|
|
@ -7,10 +7,12 @@ function createWindow(options) {
|
|
|
|
height: options.height,
|
|
|
|
height: options.height,
|
|
|
|
backgroundColor: "#2F3136",
|
|
|
|
backgroundColor: "#2F3136",
|
|
|
|
webPreferences: {
|
|
|
|
webPreferences: {
|
|
|
|
preload: Path.join(__dirname, "preload.js")
|
|
|
|
preload: Path.join(__dirname, "preload.js"),
|
|
|
|
|
|
|
|
contextIsolation: false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
let ses = win.webContents.session
|
|
|
|
let ses = win.webContents.session
|
|
|
|
|
|
|
|
|
|
|
|
win.removeMenu()
|
|
|
|
win.removeMenu()
|
|
|
|
win.loadURL("https://discord.com/app")
|
|
|
|
win.loadURL("https://discord.com/app")
|
|
|
|
win.webContents.on('before-input-event', (event, input) => {
|
|
|
|
win.webContents.on('before-input-event', (event, input) => {
|
|
|
|