mirror of
https://github.com/tcsenpai/swingmusic-desktop.git
synced 2025-07-29 14:12:15 +00:00
sleeker launch approach
This commit is contained in:
parent
bff9181518
commit
737f8bff66
6
main.js
6
main.js
@ -4,16 +4,20 @@ const path = require('node:path')
|
|||||||
|
|
||||||
let factor = null
|
let factor = null
|
||||||
|
|
||||||
|
|
||||||
function createWindow () {
|
function createWindow () {
|
||||||
// Create the browser window.
|
// Create the browser window.
|
||||||
const mainWindow = new BrowserWindow({
|
const mainWindow = new BrowserWindow({
|
||||||
width: 1280 / factor,
|
width: 1280 / factor,
|
||||||
height: 1024 / factor,
|
height: 1024 / factor,
|
||||||
webPreferences: {
|
webPreferences: {
|
||||||
zoomFactor: 1.0 / factor
|
zoomFactor: 1.0 / factor,
|
||||||
|
nodeIntegration: true,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// Testing some env variables
|
||||||
|
mainWindow.setMenuBarVisibility(false)
|
||||||
mainWindow.loadURL("http://localhost:1970")
|
mainWindow.loadURL("http://localhost:1970")
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user