Change UI, add back and forwards button, change from iframe to webview

This commit is contained in:
2026-04-30 20:54:44 -04:00
parent 4fcabf5040
commit 819d2f277a
8 changed files with 144 additions and 37 deletions

10
main.js
View File

@@ -8,12 +8,18 @@ const createWindow = () => {
width: 1280,
height: 800,
webPreferences: {
preload: path.join(__dirname, 'preload.js')
preload: path.join(__dirname, 'preload.js'),
contextIsolation: false, // Allows easier access to contentWindow
nodeIntegration: true,
nodeIntegrationInSubFrames: true,
webSecurity: false, // CRITICAL: Allows cross-origin history control
sandbox: false, // Disables the internal Electron sandbox
webviewTag: true, // Add this!
}
})
win.webContents.session.setUserAgent(androidUA)
win.maximize() // Maximize
win.loadFile('src/index.html')
}