some changes for future

This commit is contained in:
Zack Rauen 2020-07-18 11:17:47 -04:00
parent 70420bdc00
commit 640c5110f1
4 changed files with 15 additions and 14 deletions

File diff suppressed because one or more lines are too long

2
js/main.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -6,19 +6,12 @@ export const bbdVersion = "0.3.5";
export const bbdChangelog = {
description: "Big things are coming.",
changes: [
{
title: "What's New?",
items: [
"**In-App Updater** for the injection module now exists to try and decrease the number of issues with updates to the injector.",
"**Window Transparency** changes were made to more compatible with external window managers and addons like Glasscord.",
"Initialization sequence has once again been changed slightly to hopefully improve loading times."
]
},
{
title: "Bug Fixes",
type: "fixed",
items: [
"Some fixes related to showing modals in the `BdApi`."
"Some fixes related to showing modals in the `BdApi`.",
"Fixed the open folder buttons for plugins and themes"
]
}
]

View File

@ -14,16 +14,24 @@ import DOM from "./domtools";
import BDLogo from "../ui/bdLogo";
import TooltipWrap from "../ui/tooltipWrap";
const {ipcRenderer} = require("electron");
function Core() {
// Object.assign(bdConfig, __non_webpack_require__(DataStore.configFile));
// this.init();
ipcRenderer.invoke("bd-config", "get").then(injectorConfig => {
if (this.hasStarted) return;
Object.assign(bdConfig, injectorConfig);
this.init();
});
}
Core.prototype.setConfig = function(config) {
if (this.hasStarted) return;
Object.assign(bdConfig, config);
};
Core.prototype.init = async function() {
if (this.hasStarted) return;
this.hasStarted = true;
if (!Array.prototype.flat) {
Utils.alert("Not Supported", "BetterDiscord v" + bbdVersion + " does not support this old version (" + currentDiscordVersion + ") of Discord. Please update your Discord installation before proceeding.");
return;