Update ThemeSettings.plugin.js
This commit is contained in:
parent
49b1daafd2
commit
75b6950b75
|
@ -13,12 +13,12 @@ module.exports = (_ => {
|
||||||
"info": {
|
"info": {
|
||||||
"name": "ThemeSettings",
|
"name": "ThemeSettings",
|
||||||
"author": "DevilBro",
|
"author": "DevilBro",
|
||||||
"version": "1.2.2",
|
"version": "1.2.3",
|
||||||
"description": "Allow you to change Theme Variables within BetterDiscord. Adds a Settings button (similar to Plugins) to customizable Themes in your Themes Page"
|
"description": "Allow you to change Theme Variables within BetterDiscord. Adds a Settings button (similar to Plugins) to customizable Themes in your Themes Page"
|
||||||
},
|
},
|
||||||
"changeLog": {
|
"changeLog": {
|
||||||
"fixed": {
|
"fixed": {
|
||||||
"Switch Fix": "Works again"
|
"BD Beta": "Fixed start up error in plugin lit"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -76,7 +76,7 @@ module.exports = (_ => {
|
||||||
appendSettingsButton (card) {
|
appendSettingsButton (card) {
|
||||||
if (card.querySelector(".theme-settings-button")) return;
|
if (card.querySelector(".theme-settings-button")) return;
|
||||||
let addon = BDFDB.ObjectUtils.get(BDFDB.ReactUtils.getInstance(card), "return.stateNode.props.addon");
|
let addon = BDFDB.ObjectUtils.get(BDFDB.ReactUtils.getInstance(card), "return.stateNode.props.addon");
|
||||||
if (addon && !addon.plugin) {
|
if (addon && !addon.plugin && !addon.instance && addon.css) {
|
||||||
let vars = this.getThemeVars(addon.css);
|
let vars = this.getThemeVars(addon.css);
|
||||||
if (vars.length) {
|
if (vars.length) {
|
||||||
let footer = card.querySelector("." + BDFDB.dotCN._repofooter.split(".").filter(n => n).join(",."));
|
let footer = card.querySelector("." + BDFDB.dotCN._repofooter.split(".").filter(n => n).join(",."));
|
||||||
|
|
Loading…
Reference in New Issue