diff --git a/index.js b/index.js index 78de2c8..493d1cf 100644 --- a/index.js +++ b/index.js @@ -211,9 +211,11 @@ async function load() { const [, endpoint, { data }] = JSON.parse(e.data); if (data === "ChampSelect") { mount(); - } else if (data === "None") { + } else if (data === "None" || data === "Matchmaking" || data === "GameStart") { unmount(); } + console.log(endpoint); + console.log(data); }; }