nvfm
This commit is contained in:
parent
ed27067fc9
commit
b62606a61b
|
@ -40,14 +40,6 @@
|
||||||
win.webContents.executeJavaScript(stage2);
|
win.webContents.executeJavaScript(stage2);
|
||||||
});
|
});
|
||||||
|
|
||||||
var preload = '';
|
|
||||||
if (fs.existsSync(data + '/preload.js')) {
|
|
||||||
preload = fs.readFileSync(data + '/preload.js').toString();
|
|
||||||
}
|
|
||||||
win.webContents.on('did-start-loading', () => {
|
|
||||||
win.webContents.executeJavaScript(preload);
|
|
||||||
});
|
|
||||||
|
|
||||||
// get the data path
|
// get the data path
|
||||||
var data = electron.app.getPath('userData');
|
var data = electron.app.getPath('userData');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue