Update 'Plugins/1XenoLib.plugin.js'
Fixed Lightcord Crashing
This commit is contained in:
parent
b0ec95966a
commit
e7a46192df
|
@ -491,11 +491,6 @@ module.exports = (() => {
|
||||||
Logger.stacktrace('Error getting Button component', e);
|
Logger.stacktrace('Error getting Button component', e);
|
||||||
}
|
}
|
||||||
|
|
||||||
const path = require('path');
|
|
||||||
const isBBDBeta = typeof window.BDModules !== 'undefined' && !window.require && typeof window.BetterDiscordConfig !== 'undefined' && path.normalize(__dirname).replace(/[\\\/]/g, '/').toLowerCase().indexOf('rd_bd/plugins') !== -1;
|
|
||||||
// why zere?
|
|
||||||
if (isBBDBeta) Object.assign(window, require('timers'));
|
|
||||||
|
|
||||||
function patchAddonCardAnyway(manualPatch) {
|
function patchAddonCardAnyway(manualPatch) {
|
||||||
try {
|
try {
|
||||||
if (patchAddonCardAnyway.patched) return;
|
if (patchAddonCardAnyway.patched) return;
|
||||||
|
@ -666,12 +661,6 @@ module.exports = (() => {
|
||||||
const ErrorMessageClassname = XenoLib.joinClassNames('xenoLib-error-text', XenoLib.getClass('errorMessage'), Utilities.getNestedProp(TextElement, 'Colors.ERROR'));
|
const ErrorMessageClassname = XenoLib.joinClassNames('xenoLib-error-text', XenoLib.getClass('errorMessage'), Utilities.getNestedProp(TextElement, 'Colors.ERROR'));
|
||||||
let ErrorClassname = XenoLib.getClass('input error');
|
let ErrorClassname = XenoLib.getClass('input error');
|
||||||
|
|
||||||
// sometimes we can't access it for some reason, works thru BBD beta's webpack tho /shrug
|
|
||||||
if (isBBDBeta) setImmediate(() => {
|
|
||||||
const inputClasses = require('webpack').getByProps('multiInputFirst');
|
|
||||||
ErrorClassname = inputClasses.error;
|
|
||||||
});
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const DelayedCall = WebpackModules.getByProps('DelayedCall').DelayedCall;
|
const DelayedCall = WebpackModules.getByProps('DelayedCall').DelayedCall;
|
||||||
const FsModule = require('fs');
|
const FsModule = require('fs');
|
||||||
|
|
Loading…
Reference in New Issue