From ca666b62e504856b25dee64ca992da05e9489744 Mon Sep 17 00:00:00 2001 From: Astra Date: Tue, 8 May 2018 00:22:05 -0400 Subject: [PATCH] use dom-ready to time loading epapi --- crxpwn.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crxpwn.js b/crxpwn.js index 364da56..6084a7c 100644 --- a/crxpwn.js +++ b/crxpwn.js @@ -41,6 +41,6 @@ // call their entrypoints crispr.go(); - window.document.body.onload = () => epapi.go('crxpwn', 0, 1); + electron.getCurrentWindow().webContents.on('dom-ready', () => epapi.go('crxpwn', 0, 1)); })(); \ No newline at end of file