From c70bdf3168e6383b675e411d58d7d21db6155a08 Mon Sep 17 00:00:00 2001 From: CanadaHonk Date: Tue, 27 Sep 2022 01:18:07 +0100 Subject: [PATCH] bootstrap: add defiant before --- bootstrap/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bootstrap/index.js b/bootstrap/index.js index 8dedb91a..e8202ce2 100644 --- a/bootstrap/index.js +++ b/bootstrap/index.js @@ -17,6 +17,9 @@ const init = async () => { window.webpackChunkdiscord_app.push([['gm_webpackInject'], {}, (req) => { wpRequire = req; }]); } + eval(await (await fetch(`https://raw.githubusercontent.com/GooseMod/defiant/main/index.js?_` + Date.now())).text()); + + const locale = Object.keys(wpRequire.c).map((x) => wpRequire.c[x].exports).find((x) => x?.default?.getLocaleInfo).default.getLocale(); console.log('[GooseMod Bootstrap]', 'Found locale', locale);