Syncing with rauenzi/BetterDiscordApp 750f65e

This commit is contained in:
Jean Ouina 2020-05-22 21:43:47 +02:00
parent 4422416514
commit acee8ee0d0
3 changed files with 12 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -144,6 +144,7 @@ export default new class ContentManager {
content = "";
}
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};`;
}
}

View File

@ -198,4 +198,12 @@ export default class V2C_PluginCard extends BDV2.reactComponent {
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
});