GooseMod v5.0.1: Fix settings injecting in all sidebars

pull/8/head
Oj18 4 years ago
parent 71113fd576
commit 1c2fd49c4e

@ -1,5 +1,14 @@
# GooseMod Changelog
## v5.0.1 [2020-11-12]
- ### Tweaks
- Removed some extra debug logging
- ### Fixes
- Fixed GooseMod settings being injected in all sidebars instead of just settings
## v5.0.0 [2020-11-09]
- ### Features

4
dist/index.js vendored

File diff suppressed because one or more lines are too long

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

@ -99,7 +99,7 @@ const init = async function () {
this.disabledModules = {};
this.lastVersion = localStorage.getItem('goosemodLastVersion');
this.version = '5.0.0';
this.version = '5.0.1';
this.versionHash = '<hash>'; // Hash of built final js file is inserted here via build script
fetch('https://goosemod-api.netlify.app/injectVersion.json').then((x) => x.json().then((latestInjectVersionInfo) => {

@ -1171,7 +1171,9 @@ export const makeGooseModSettings = () => {
const { React } = goosemodScope.webpackModules.common;
goosemodScope.patcher.inject('gm-settings', SettingsView.prototype, 'getPredicateSections', (_, sections) => {
// console.log(sections);
console.log(sections);
if (!sections.find(c => c.section === 'changelog')) return sections;
const dividers = sections.filter(c => c.section === 'DIVIDER');
@ -1281,8 +1283,6 @@ export const makeGooseModSettings = () => {
}
);
console.log('gm', sections);
return sections;
});

Loading…
Cancel
Save