From 57c40ffa4faa0b3cde66c0a7b3a1fb9664ddfc4f Mon Sep 17 00:00:00 2001 From: smartfridge <37928912+smartfrigde@users.noreply.github.com> Date: Wed, 14 Jul 2021 18:45:36 +0200 Subject: [PATCH] Remove additional logging from plugin/theme loading, fix one grammar mistake --- utils/plugin.js | 4 +--- utils/theme.js | 3 --- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/utils/plugin.js b/utils/plugin.js index 46997e0..14af4a5 100644 --- a/utils/plugin.js +++ b/utils/plugin.js @@ -37,7 +37,7 @@ if (!fs.existsSync(pluginFolder)) { electron.dialog.showMessageBox({ title: "ArmCord", type: "warning", - message: "ArmCord installed GooseMod onto your client.", + message: "ArmCord has installed GooseMod onto your client.", detail: "If you wish to use it restart your ArmCord completely using tray icon. It should appear in next session. GooseMod is reccomended to every user of ArmCord due to various improvements and bugfixes it ships with.", }); @@ -49,14 +49,12 @@ if (!fs.existsSync(pluginFolder)) { } app.whenReady().then(() => { fs.readdirSync(pluginFolder).forEach((file) => { - console.log(file); try { const manifest = fs.readFileSync( `${userDataPath}/plugins/${file}/manifest.json`, "utf8" ); var pluginFile = JSON.parse(manifest); - console.log(pluginFile); session.defaultSession.loadExtension(`${userDataPath}/plugins/${file}`); console.log( `%cLoaded ${pluginFile.name} made by ${pluginFile.author}`, diff --git a/utils/theme.js b/utils/theme.js index 9b98d90..da5bacf 100644 --- a/utils/theme.js +++ b/utils/theme.js @@ -11,12 +11,9 @@ if (!fs.existsSync(themeFolder)) { window.addEventListener("DOMContentLoaded", () => { console.log("Theme Module Loaded"); fs.readdirSync(themeFolder).forEach((file) => { - console.log(file); try { const manifest = fs.readFileSync(`${userDataPath}/themes/${file}/manifest.json`, "utf8"); var themeFile = JSON.parse(manifest); - console.log(themeFile.theme); - console.log(themeFile) const theme = fs.readFileSync(`${userDataPath}/themes/${file}/${themeFile.theme}`, "utf8"); if (themeFile.theme.endsWith(".scss")) { console.log(