From ff49bbb407282070009573d3d680a8d0e3c53711 Mon Sep 17 00:00:00 2001 From: _Lighty_ <49841131+1Lighty@users.noreply.github.com> Date: Fri, 6 Nov 2020 18:11:11 +0100 Subject: [PATCH] XL remove broken error --- Plugins/1XenoLib.plugin.js | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/Plugins/1XenoLib.plugin.js b/Plugins/1XenoLib.plugin.js index 21ee19e..8194f65 100644 --- a/Plugins/1XenoLib.plugin.js +++ b/Plugins/1XenoLib.plugin.js @@ -116,19 +116,6 @@ module.exports = (() => { PluginUpdater.checkForUpdate(config.info.name, config.info.version, config.info.github_raw); - const o = Error.captureStackTrace; - const ol = Error.stackTraceLimit; - Error.stackTraceLimit = 0; - try { - const check1 = a => a[0] === 'L' && a[3] === 'h' && a[7] === 'r'; - const check2 = a => a.length === 13 && a[0] === 'B' && a[7] === 'i' && a[12] === 'd'; - const mod = WebpackModules.find(check1) || {}; - (Utilities.getNestedProp(mod, `${Object.keys(mod).find(check1)}.${Object.keys(Utilities.getNestedProp(mod, Object.keys(window).find(check1) || '') || {}).find(check2)}.Utils.removeDa`) || DiscordConstants.NOOP)({}) - } finally { - Error.stackTraceLimit = ol; - Error.captureStackTrace = o; - } - let CancelledAsync = false; const DefaultLibrarySettings = {};