Made custom version info injection more precise and less crash-prone for Powercord BDCompat

pull/36/head
Oj18 3 years ago
parent bee4915b9a
commit 30ec85ee93

@ -9,6 +9,10 @@
- Stopped authors with discriminators being separated with just author name
- Added newline support to loading toast
- ### Fixes
- Made custom version info in settings more precise and should no longer crash if also using Powercord's BDCompat when opening settings
## v6.0.1 [2021-01-22]
- ### Fixes

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

@ -1307,7 +1307,9 @@ export const makeGooseModSettings = () => {
);
//}
const versionInfo = sections[sections.length - 1];
const customSections = sections.filter((x) => x.section === 'CUSTOM' && x.element !== undefined);
const versionInfo = customSections[customSections.length - 1];
const versionInfoEl = versionInfo.element();
let goosemodVersionInfo = React.cloneElement(versionInfoEl);

Loading…
Cancel
Save