[Metro > Common] Fix constants find

Discord renamed API_HOST to APP_URL_PREFIX in iOS build 44564,
breaking our constants find. Instead, we should use Fonts and Permissions
because those shouldn't ever be removed from constants.. right?
This commit is contained in:
Jack Matthews 2023-05-26 04:33:54 -04:00 committed by Beef
parent e99da222ad
commit 028bb19080

View file

@ -2,7 +2,7 @@ import { DiscordStyleSheet } from "@types";
import { find, findByProps } from "@metro/filters"; import { find, findByProps } from "@metro/filters";
// Discord // Discord
export const constants = findByProps("API_HOST"); export const constants = findByProps("Fonts", "Permissions");
export const channels = findByProps("getVoiceChannelId"); export const channels = findByProps("getVoiceChannelId");
export const i18n = findByProps("Messages"); export const i18n = findByProps("Messages");
export const url = findByProps("openURL", "openDeeplink"); export const url = findByProps("openURL", "openDeeplink");