Sync with rauenzi/BetterDiscordApp 8d25e33
This commit is contained in:
parent
c7f144c172
commit
d5fece6d9c
|
@ -202,7 +202,7 @@ export default new class ContentManager {
|
|||
content = "";
|
||||
}
|
||||
else {
|
||||
// Utils.warn("Module Not Exported", `${meta.name}, please start setting module.exports`);
|
||||
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};`;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -53,7 +53,9 @@ export default class CardList extends BDV2.reactComponent {
|
|||
}
|
||||
|
||||
openFolder() {
|
||||
require("electron").shell.openItem(this.isPlugins ? ContentManager.pluginsFolder : ContentManager.themesFolder);
|
||||
const shell = require("electron").shell;
|
||||
const open = shell.openPath || shell.openItem;
|
||||
open(this.isPlugins ? ContentManager.pluginsFolder : ContentManager.themesFolder);
|
||||
}
|
||||
|
||||
edit(name) {
|
||||
|
|
|
@ -29,3 +29,11 @@ export default class V2C_Scroller extends BDV2.reactComponent {
|
|||
);
|
||||
}
|
||||
}
|
||||
|
||||
const originalRender = V2C_Scroller.prototype.render;
|
||||
Object.defineProperty(V2C_Scroller.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