diff --git a/src/bootstrap.js b/src/bootstrap.js index 9167854..4633c3a 100644 --- a/src/bootstrap.js +++ b/src/bootstrap.js @@ -62,16 +62,12 @@ const startCore = () => { donePageReady = true; } - const cmdSwitches = require('./cmdSwitches'); - let injectJs = readFileSync(join(__dirname, 'mainWindowInject.js'), 'utf8'); const [ version1, version2 ] = oaVersion.split('-'); // Split via - injectJs = injectJs .replaceAll('', version1[0].toUpperCase() + version1.substring(1).toLowerCase()) - .replaceAll('', version2 || 'custom') - .replaceAll('', cmdSwitches.preset) - .replaceAll('', cmdSwitches.cmd); + .replaceAll('', version2 || 'custom'); bw.webContents.executeJavaScript(injectJs); }); diff --git a/src/mainWindowInject.js b/src/mainWindowInject.js index 7e1bddb..8f6a6ac 100644 --- a/src/mainWindowInject.js +++ b/src/mainWindowInject.js @@ -46,34 +46,4 @@ el.appendChild(document.createTextNode(css)); document.body.appendChild(el); -const injectGMSettings = async () => { - const sleep = (ms) => new Promise((res) => setTimeout(res, ms)); - - await sleep(3000); - if (!window.goosemod) return; - - goosemod.settings.items.unshift( - ['item', 'OpenAsar', ['', - { - type: 'header', - text: 'Info' - }, - - { - type: 'text', - text: 'Version', - subtext: 'Channel: \nHash: ' - }, - - { - type: 'text', - text: 'Cmd', - subtext: 'Preset: \nCmd: ' - } - ], undefined, false], - ['separator'] - ) -}; -injectGMSettings(); - window.openasar = {}; \ No newline at end of file