Update 'Plugins/1XenoLib.plugin.js'

Fixed Lightcord Crashing
This commit is contained in:
Dollar3795 2021-03-05 08:26:11 +00:00
parent b0ec95966a
commit e7a46192df
1 changed files with 0 additions and 11 deletions

View File

@ -491,11 +491,6 @@ module.exports = (() => {
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) {
try {
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'));
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 {
const DelayedCall = WebpackModules.getByProps('DelayedCall').DelayedCall;
const FsModule = require('fs');