Skip to content
This repository has been archived by the owner on Jun 27, 2021. It is now read-only.

Commit

Permalink
Attempt at waiting for webpack variable, instead of just blindly dela…
Browse files Browse the repository at this point in the history
…ying
  • Loading branch information
MasicoreLord authored and MasicoreLord committed Feb 7, 2021
1 parent 826f28f commit ecb8161
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions dom_shit.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,11 @@ process.once('loaded', async () => {
ED.plugins = plugins;
c.log(`Plugins validated.`);

//while (electron.webFrame.top.context.window.webpackJsonp === 'undefined')
await c.sleep(250); // wait until this is loaded in order to use it for modules
do {
await c.sleep(100);
}
while (!electron.webFrame.top.context.window.webpackJsonp);


ED.webSocket = window._ws;

Expand Down

0 comments on commit ecb8161

Please sign in to comment.