let's try this a third time

This commit is contained in:
Astra 2018-04-22 00:31:43 -04:00
parent f994ffc2e7
commit 0c94e41785
1 changed files with 3 additions and 2 deletions

View File

@ -36,8 +36,9 @@
// inject stage 2 once Discord is done loading
win.webContents.on('dom-ready', () => {
win.webContents.executeJavaScript(shared);
win.webContents.executeJavaScript(stage2);
win.webContents.executeJavaScript(shared).then(() =>
win.webContents.executeJavaScript(stage2)
);
});
function load() {