Update 0BDFDB.plugin.js

This commit is contained in:
Mirco Wittrien 2022-09-27 21:17:39 +02:00
parent 819fca7487
commit 90b6e7e4d2
1 changed files with 2 additions and 3 deletions

View File

@ -1097,8 +1097,7 @@ module.exports = (_ => {
libraryCSS = css;
const backupObj = getBackup(dataFileName, dataFilePath);
// REMOVE
if (backupObj.backup && backupObj.hashIsSame || true) parseData(backupObj.backup);
if (backupObj.backup && backupObj.hashIsSame) parseData(backupObj.backup);
else request.get(`https://mwittrien.github.io/BetterDiscordAddons/Library/_res/${dataFileName}`, (e, r, b) => {
if ((e || !b || r.statusCode != 200) && tryAgain) return BDFDB.TimeUtils.timeout(_ => requestLibraryData(), 10000);
if (!e && b && r.statusCode == 200) {
@ -4105,7 +4104,7 @@ module.exports = (_ => {
const RealMenuItems = BDFDB.ModuleUtils.findByProperties("MenuItem", "MenuGroup");
BDFDB.ContextMenuUtils = {};
BDFDB.ContextMenuUtils.open = function (plugin, e, children) {
Internal.LibraryModules.ContextMenuUtils.openContextMenu(e, _ => BDFDB.ReactUtils.createElement(Internal.LibraryComponents.Menu, {
Internal.LibraryModules.ContextMenuUtils.openContextMenu(e || mousePosition, _ => BDFDB.ReactUtils.createElement(Internal.LibraryComponents.Menu, {
navId: "bdfdb-context",
onClose: Internal.LibraryModules.ContextMenuUtils.closeContextMenu,
children: children