Injector v2.3.0: Theme and hardcoded always put before with to install modules on injection, make Dracula default theme

pull/8/head
Oj18 4 years ago
parent a6185e3c20
commit b9bac2c59e

@ -1,5 +1,12 @@
# GooseMod Changelog
## v2.3.0
- ### Features
- Put theme and hardcoded color fixer to start of to install modules on injection always
- Made Dracula Theme new default theme (used to be Darkest)
## v2.2.2
- ### Fixes

@ -9,7 +9,7 @@
this.injectorHash = hash;
});
this.version = '2.2.2';
this.version = '2.3.0';
this.modules = {};
this.disabledModules = {};
@ -1643,11 +1643,23 @@
if (toInstallModules.length === 0) {
toInstallIsDefault = true;
toInstallModules = ['hardcodedColorFixer', 'darkestTheme', 'fucklytics', 'visualTweaks', 'wysiwygMessages', 'customSounds', 'devMode', 'twitchEmotes', 'noMessageDeletion'];
toInstallModules = ['hardcodedColorFixer', 'draculaTheme', 'fucklytics', 'visualTweaks', 'wysiwygMessages', 'customSounds', 'devMode', 'twitchEmotes', 'noMessageDeletion'];
}
toInstallModules = toInstallModules.filter((m) => this.moduleStoreAPI.modules.find((x) => x.filename === m) !== undefined);
let themeModule = toInstallModules.find((x) => x.toLowerCase().includes('theme'));
if (themeModule) {
toInstallModules.unshift(toInstallModules.splice(toInstallModules.indexOf(themeModule), 1)[0]);
}
let hardcodedColorFixerModule = toInstallModules.find((x) => x === 'hardcodedColorFixer');
if (hardcodedColorFixerModule) {
toInstallModules.unshift(toInstallModules.splice(toInstallModules.indexOf(hardcodedColorFixerModule), 1)[0]);
}
this.updateLoadingScreen(`Importing default modules from Module Store... (${toInstallIsDefault ? '(Default)' : '(Last Installed)'})`);
for (let m of toInstallModules) {

Loading…
Cancel
Save