From 0c94e4178510751ff8aa84f828b38dc43fd2b03a Mon Sep 17 00:00:00 2001 From: Astra Date: Sun, 22 Apr 2018 00:31:43 -0400 Subject: [PATCH] let's try this a third time --- monitor.htm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/monitor.htm b/monitor.htm index e0dd2a8..0e12cd1 100644 --- a/monitor.htm +++ b/monitor.htm @@ -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() {