Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

Commit

Permalink
[Metro > Common] Fix constants find
Browse files Browse the repository at this point in the history
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?
  • Loading branch information
FieryFlames authored and maisymoe committed May 26, 2023
1 parent e99da22 commit 028bb19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/metro/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { DiscordStyleSheet } from "@types";
import { find, findByProps } from "@metro/filters";

// Discord
export const constants = findByProps("API_HOST");
export const constants = findByProps("Fonts", "Permissions");
export const channels = findByProps("getVoiceChannelId");
export const i18n = findByProps("Messages");
export const url = findByProps("openURL", "openDeeplink");
Expand Down

0 comments on commit 028bb19

Please sign in to comment.