Merge pull request #1787 from BetterDiscord/fix-patches

Fix version info and custom css
This commit is contained in:
Zerebos 2024-12-11 21:32:16 -05:00 committed by GitHub
commit 8ddce94f7e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ export default class DOMManager {
static get bdScripts() {return this.getElement("bd-scripts");}
static get bdStyles() {return this.getElement("bd-styles");}
static get bdThemes() {return this.getElement("bd-themes");}
static get bdCustomCSS() {return this.getElement("#customcss");}
static get bdCustomCSS() {return this.getElement("style#customcss");}
static get bdTooltips() {return this.getElement("bd-tooltips") || this.createElement("bd-tooltips").appendTo(this.bdBody);}
static get bdModals() {return this.getElement("bd-modals") || this.createElement("bd-modals").appendTo(this.bdBody);}
static get bdToasts() {return this.getElement("bd-toasts") || this.createElement("bd-toasts").appendTo(this.bdBody);}

View File

@ -175,7 +175,7 @@ export default new class SettingsRenderer {
}
async patchVersionInformation() {
const versionDisplayModule = await WebpackModules.getLazy(Filters.byStrings("RELEASE_CHANNEL", "COPY_VERSION"), {defaultExport: false});
const versionDisplayModule = await WebpackModules.getLazy(Filters.byStrings("copyValue", "RELEASE_CHANNEL"), {defaultExport: false});
if (!versionDisplayModule?.Z) return;
Patcher.after("SettingsManager", versionDisplayModule, "Z", (_, __, reactTree) => {