mirror of
https://github.com/Lightcord/Lightcord.git
synced 2025-04-12 00:55:40 +02:00
Sync with rauenzi/BetterDiscordApp 640c511
This commit is contained in:
parent
121ca68647
commit
b0ecc2a669
File diff suppressed because one or more lines are too long
2
BetterDiscordApp/js/main.min.js
vendored
2
BetterDiscordApp/js/main.min.js
vendored
File diff suppressed because one or more lines are too long
@ -41,19 +41,12 @@ export const LCChanelog = {
|
||||
export const bbdChangelog = {
|
||||
description: "BBD's changelog.",
|
||||
changes: [
|
||||
{
|
||||
title: "What's New?",
|
||||
items: [
|
||||
"**Lightcord** is now using BandagedBD. That means all plugins you were using can be used too !",
|
||||
"**Window Transparency** changes were made to more compatible with external window managers and addons like Glasstron.",
|
||||
"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"
|
||||
]
|
||||
}
|
||||
]
|
||||
|
@ -17,9 +17,10 @@ import distant, { uuidv4 } from "./distant";
|
||||
import EmojiModule from "./emojiModule"
|
||||
import {remote as electron} from "electron"
|
||||
import v2 from "./v2";
|
||||
import webpackModules from "./webpackModules";
|
||||
import contentManager from "./contentManager";
|
||||
|
||||
const {ipcRenderer} = require("electron");
|
||||
|
||||
function Core() {
|
||||
// Object.assign(bdConfig, __non_webpack_require__(DataStore.configFile));
|
||||
// this.init();
|
||||
@ -28,14 +29,19 @@ function Core() {
|
||||
let methods
|
||||
|
||||
Core.prototype.setConfig = function(config) {
|
||||
if (this.hasStarted) return;
|
||||
Object.assign(bdConfig, config);
|
||||
};
|
||||
|
||||
Core.prototype.setMethods = function(m) {
|
||||
if (this.hasStarted) return;
|
||||
methods = m
|
||||
};
|
||||
|
||||
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…
x
Reference in New Issue
Block a user