Syncing with rauenzi/BetterDiscordApp 750f65e
This commit is contained in:
parent
4422416514
commit
acee8ee0d0
File diff suppressed because one or more lines are too long
|
@ -144,6 +144,7 @@ export default new class ContentManager {
|
||||||
content = "";
|
content = "";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
// Utils.warn("Module Not Exported", `${meta.name}, please start setting module.exports`);
|
||||||
content += `\nmodule.exports = ${JSON.stringify(meta)};\nmodule.exports.type = ${meta.exports || meta.name};`;
|
content += `\nmodule.exports = ${JSON.stringify(meta)};\nmodule.exports.type = ${meta.exports || meta.name};`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -198,4 +198,12 @@ export default class V2C_PluginCard extends BDV2.reactComponent {
|
||||||
this.footer
|
this.footer
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const originalRender = V2C_PluginCard.prototype.render;
|
||||||
|
Object.defineProperty(V2C_PluginCard.prototype, "render", {
|
||||||
|
enumerable: false,
|
||||||
|
configurable: false,
|
||||||
|
set: function() {console.warn("Addon policy for plugins #5 https://github.com/rauenzi/BetterDiscordApp/wiki/Addon-Policies#plugins");},
|
||||||
|
get: () => originalRender
|
||||||
|
});
|
Loading…
Reference in New Issue