Fix for class name changes

This commit is contained in:
Zack Rauen 2021-11-01 17:02:46 -04:00
parent b20814c349
commit c2ff0b251d
4 changed files with 16 additions and 17 deletions

View File

@ -2,6 +2,18 @@
This changelog starts with the restructured 1.0.0 release that happened after context isolation changes. The changelogs here should more-or-less mirror the ones that get shown in the client but probably with less formatting and pizzazz. This changelog starts with the restructured 1.0.0 release that happened after context isolation changes. The changelogs here should more-or-less mirror the ones that get shown in the client but probably with less formatting and pizzazz.
## 1.2.4
### Added
### Removed
### Changed
### Fixed
- Fixed loading sequence using wrong classes
## 1.2.3 ## 1.2.3
### Added ### Added

View File

@ -1,6 +1,6 @@
{ {
"name": "betterdiscord", "name": "betterdiscord",
"version": "1.2.3", "version": "1.2.4",
"description": "Enhances Discord by adding functionality and themes.", "description": "Enhances Discord by adding functionality and themes.",
"main": "src/index.js", "main": "src/index.js",
"scripts": { "scripts": {

View File

@ -1,24 +1,11 @@
export default { export default {
description: "Many new crowdsourced translations added, shout-out to our contributors on POEditor!", description: "Expect more soon!",
changes: [ changes: [
{
title: "New Translations",
type: "added",
items: [
"Czech, Spanish, Hindi (partial), Italian, Dutch, Norwegian (partial), Portuguese (PT), Romanian, Russian, Turkish",
"Languages also fallback to English when a translation does not exist."
]
},
{ {
title: "Fixes", title: "Fixes",
type: "fixed", type: "fixed",
items: [ items: [
"Canary loading no longer blocked by changed class names.", "BetterDiscord loads against after Discord's useless updates."
"The following were all thanks to Strencher! (https://github.com/Strencher)",
"The public servers button is back!",
"Guild related classes are back too!",
"Fixed webpack module search on Canary.",
"Fixed `window.webpackJsonp` related plugin issues via polyfill. Note: This will be removed in future versions."
] ]
} }
] ]

View File

@ -149,7 +149,7 @@ export default Utilities.memoizeObject({
const guildsWrapper = WebpackModules.getByProps("base", "guilds"); const guildsWrapper = WebpackModules.getByProps("base", "guilds");
const guilds = WebpackModules.getByProps("wrapper", "acronym"); const guilds = WebpackModules.getByProps("wrapper", "acronym");
const pill = WebpackModules.getByProps("circleIconButton"); const pill = WebpackModules.getByProps("circleIconButton");
const listItem = WebpackModules.getByProps("listItem"); const listItem = WebpackModules.getModule(m => m.listItem && !m.pill);
return Object.assign({}, guildsWrapper, listItem, guilds, pill); return Object.assign({}, guildsWrapper, listItem, guilds, pill);
}, },