[Hotfix] Destructure arguments for url quickinstall after checking key

This commit is contained in:
Jack Matthews 2023-04-05 12:34:35 -04:00 committed by Beef
parent c8f54c1b0c
commit 10618ae217

View file

@ -8,8 +8,10 @@ import { showToast } from "@ui/toasts";
const showSimpleActionSheet = findByProps("showSimpleActionSheet");
export default () => after("showSimpleActionSheet", showSimpleActionSheet, ([{ key, header: { title: url }, options }]) => {
if (key !== "LongPressUrl") return;
export default () => after("showSimpleActionSheet", showSimpleActionSheet, (args) => {
if (args[0].key !== "LongPressUrl") return;
const { header: { title: url }, options } = args[0];
let urlType: string;
if (url.startsWith(PROXY_PREFIX)) {