some changes for future
This commit is contained in:
parent
70420bdc00
commit
640c5110f1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -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"
|
||||
]
|
||||
}
|
||||
]
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue