mirror of
https://github.com/Lightcord/Lightcord.git
synced 2025-04-12 00:55:40 +02:00
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};`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -199,3 +199,11 @@ export default class V2C_PluginCard extends BDV2.reactComponent {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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…
x
Reference in New Issue
Block a user