diff --git a/Plugins/1XenoLib.plugin.js b/Plugins/1XenoLib.plugin.js index 8744a75..71d5ff0 100644 --- a/Plugins/1XenoLib.plugin.js +++ b/Plugins/1XenoLib.plugin.js @@ -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');