From 2ca57c8f6b0e6185349ea82f3150ca66df2f72b8 Mon Sep 17 00:00:00 2001 From: Oj Date: Sun, 13 Feb 2022 20:52:19 +0000 Subject: [PATCH] [Index] Clean up source a bit --- src/index.js | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/index.js b/src/index.js index 2cf443a..b6003e9 100644 --- a/src/index.js +++ b/src/index.js @@ -2,15 +2,14 @@ const log = require('./utils/log'); global.log = log; // Make log global for easy usage everywhere global.oaVersion = 'nightly'; -log('Init', 'OpenAsar v' + oaVersion); +log('Init', 'OpenAsar', oaVersion); log('Init', 'Resources Path:', process.resourcesPath); if (process.resourcesPath.startsWith('/usr/lib/electron')) { // Using system electron, fix process.resourcesPath log('Init', 'Detected System Electron, fixing paths'); global.systemElectron = true; - const { join } = require('path'); - process.resourcesPath = join(__dirname, '..'); + process.resourcesPath = require('path').join(__dirname, '..'); log('Init', 'Resources Path:', process.resourcesPath); } @@ -31,9 +30,7 @@ if (process.argv.includes('--overlay-host')) { require('./updater/moduleUpdater').initPathsOnly(buildInfo); } - require('discord_overlay2/standalone_host.js') + require('discord_overlay2/standalone_host.js'); } else { - const bootstrap = require('./bootstrap'); - - bootstrap(); // Start bootstrap -} + require('./bootstrap')(); // Start bootstrap +} \ No newline at end of file