Change UI, add back and forwards button, change from iframe to webview
This commit is contained in:
10
main.js
10
main.js
@@ -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')
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user