This commit is contained in:
Mirco Wittrien 2022-02-12 23:21:21 +01:00
parent 4769a7af33
commit db1274dc8c
2 changed files with 5 additions and 5 deletions

View File

@ -8208,10 +8208,10 @@ module.exports = (_ => {
InternalBDFDB.addChunkObserver = function (pluginData, config) {
let module;
if (config.stringFind) module = BDFDB.ModuleUtils.findByString(config.stringFind, false, true);
else if (config.propertyFind) module = BDFDB.ModuleUtils.findByProperties(config.propertyFind, false, true);
else if (config.prototypeFind) module = BDFDB.ModuleUtils.findByPrototypes(config.prototypeFind, false, true);
else module = BDFDB.ModuleUtils.findByName(config.name, false, true);
if (config.stringFind) module = BDFDB.ModuleUtils.findByString(config.stringFind, config.exported, true);
else if (config.propertyFind) module = BDFDB.ModuleUtils.findByProperties(config.propertyFind, config.exported, true);
else if (config.prototypeFind) module = BDFDB.ModuleUtils.findByPrototypes(config.prototypeFind, config.exported, true);
else module = BDFDB.ModuleUtils.findByName(config.name, config.exported, true);
if (module) {
let exports = !config.exported && module.exports || module;
exports = config.path && BDFDB.ObjectUtils.get(exports, config.path) || exports;

View File

@ -209,7 +209,7 @@
"DirectMessage": {"class": "guildouter", "forceObserve": true},
"EmojiPicker": {"strings": ["EMOJI_PICKER_TAB_PANEL_ID", "diversitySelector"]},
"FocusRing": {"props": ["FocusRingScope"]},
"GuildFolderSettingsModal": {"lazyLoaded": true},
"GuildFolderSettingsModal": {"lazyLoaded": true, "exported": true},
"GuildHeader": {"strings": ["bannerVisible", "guildBanner", "onContextMenu"]},
"GuildIcon": {"class": "avataricon", "forceObserve": true},
"GuildItem": {"strings": ["selectedChannelId", "guildNode", "lowerBadgeWidth"]},