Commit 4159ac0b authored by akiraohgaki's avatar akiraohgaki

Set partition and preload script

parent a66ac5bb
...@@ -114,7 +114,9 @@ function createWindow() { ...@@ -114,7 +114,9 @@ function createWindow() {
function createView() { function createView() {
mainView = new BrowserView({ mainView = new BrowserView({
webPreferences: { webPreferences: {
nodeIntegration: false nodeIntegration: false,
partition: 'persist:opendesktop',
preload: `${__dirname}/scripts/renderers/browser-view.js`
} }
}); });
...@@ -134,6 +136,10 @@ function createView() { ...@@ -134,6 +136,10 @@ function createView() {
height: true height: true
}); });
if (isDebugMode) {
mainView.webContents.openDevTools({mode: 'detach'});
}
mainView.webContents.loadURL('https://www.opendesktop.org/'); 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