|
|
@ -63,12 +63,7 @@ const startCore = () => {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
const i = setImmediate(() => {
|
|
|
|
const i = setImmediate(() => {
|
|
|
|
log('MainWindowInject', 'Attempting to get main window');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!global.mainWindowId) return;
|
|
|
|
if (!global.mainWindowId) return;
|
|
|
|
|
|
|
|
|
|
|
|
log('MainWindowInject', 'Success, adding dom-ready handler');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
clearInterval(i);
|
|
|
|
clearInterval(i);
|
|
|
|
|
|
|
|
|
|
|
|
const bw = BrowserWindow.fromId(global.mainWindowId);
|
|
|
|
const bw = BrowserWindow.fromId(global.mainWindowId);
|
|
|
@ -80,8 +75,6 @@ const startCore = () => {
|
|
|
|
donePageReady = true;
|
|
|
|
donePageReady = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
log('MainWindowInject', 'dom-ready triggered, injecting JS');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const cmdSwitches = require('./cmdSwitches');
|
|
|
|
const cmdSwitches = require('./cmdSwitches');
|
|
|
|
|
|
|
|
|
|
|
|
let injectJs = readFileSync(join(__dirname, 'mainWindowInject.js'), 'utf8');
|
|
|
|
let injectJs = readFileSync(join(__dirname, 'mainWindowInject.js'), 'utf8');
|
|
|
|