Merge pull request #250 from smartfrigde/patch-1

Fixed typo
This commit is contained in:
JeanOUINA 2021-04-29 15:30:50 +02:00 committed by GitHub
commit 0bd5d289d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -97,7 +97,7 @@ export default class V2C_PluginCard extends BDV2.reactComponent {
let settingPanel
if(typeof this.settingsPanel === "object"){
if(this.settingsPanel instanceof Node){
settingPanel = BVD2.react.createElement("div", {id: `plugin-settings-${this.name}`, className: "plugin-settings", ref: (elem) => {
settingPanel = BDV2.react.createElement("div", {id: `plugin-settings-${this.name}`, className: "plugin-settings", ref: (elem) => {
elem.appendChild(this.settingsPanel)
}})
}else{
@ -105,7 +105,7 @@ export default class V2C_PluginCard extends BDV2.reactComponent {
this.settingsPanel)
}
}else if(typeof this.settingsPanel === "string"){
settingPanel = BVD2.react.createElement("div", {id: `plugin-settings-${this.name}`, className: "plugin-settings", dangerouslySetInnerHTML: {__html: this.settingsPanel}})
settingPanel = BDV2.react.createElement("div", {id: `plugin-settings-${this.name}`, className: "plugin-settings", dangerouslySetInnerHTML: {__html: this.settingsPanel}})
}
return BDV2.react.createElement("div", {className: "bd-card bd-addon-card settings-open ui-switch-item", ref: "cardNode"},
BDV2.react.createElement("div", {style: {"float": "right", "cursor": "pointer"}, onClick: () => {
@ -249,4 +249,4 @@ Object.defineProperty(V2C_PluginCard.prototype, "render", {
configurable: false,
set: function() {console.warn("Addon policy for plugins #5 https://github.com/rauenzi/BetterDiscordApp/wiki/Addon-Policies#plugins");},
get: () => originalRender
});
});