This commit is contained in:
Astra 2018-05-03 14:09:49 -04:00
parent ed27067fc9
commit b62606a61b
1 changed files with 0 additions and 8 deletions

View File

@ -40,14 +40,6 @@
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
var data = electron.app.getPath('userData');