Update ThemeRepo.plugin.js
This commit is contained in:
parent
3ff891ba26
commit
885c073da8
|
@ -2,7 +2,7 @@
|
||||||
* @name ThemeRepo
|
* @name ThemeRepo
|
||||||
* @author DevilBro
|
* @author DevilBro
|
||||||
* @authorId 278543574059057154
|
* @authorId 278543574059057154
|
||||||
* @version 2.4.5
|
* @version 2.4.6
|
||||||
* @description Allows you to download all Themes from BD's Website within Discord
|
* @description Allows you to download all Themes from BD's Website within Discord
|
||||||
* @invite Jx3TjNS
|
* @invite Jx3TjNS
|
||||||
* @donate https://www.paypal.me/MircoWittrien
|
* @donate https://www.paypal.me/MircoWittrien
|
||||||
|
@ -638,7 +638,7 @@ module.exports = (_ => {
|
||||||
loadingToast.close();
|
loadingToast.close();
|
||||||
BDFDB.NotificationUtils.toast(BDFDB.LanguageUtils.LibraryStringsFormat("download_fail", `Theme "${this.props.data.name}"`), {type: "danger"});
|
BDFDB.NotificationUtils.toast(BDFDB.LanguageUtils.LibraryStringsFormat("download_fail", `Theme "${this.props.data.name}"`), {type: "danger"});
|
||||||
}
|
}
|
||||||
else list.createThemeFile(this.props.data.name, this.props.data.rawSourceUrl.split("/").pop(), body, autoloadKey).then(error2 => {
|
else list.createThemeFile(this.props.data.name, this.props.data.rawSourceUrl.split("/").pop(), Buffer.from(buffer).toString(), autoloadKey).then(error2 => {
|
||||||
delete this.props.downloading;
|
delete this.props.downloading;
|
||||||
loadingToast.close();
|
loadingToast.close();
|
||||||
if (!error2) {
|
if (!error2) {
|
||||||
|
|
Loading…
Reference in New Issue