Commit 4159ac0b authored by akiraohgaki's avatar akiraohgaki

Set partition and preload script

parent a66ac5bb
......@@ -114,7 +114,9 @@ function createWindow() {
function createView() {
mainView = new BrowserView({
webPreferences: {
nodeIntegration: false
nodeIntegration: false,
partition: 'persist:opendesktop',
preload: `${__dirname}/scripts/renderers/browser-view.js`
}
});
......@@ -134,6 +136,10 @@ function createView() {
height: true
});
if (isDebugMode) {
mainView.webContents.openDevTools({mode: 'detach'});
}
mainView.webContents.loadURL('https://www.opendesktop.org/');
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment