[Hotfix] Destructure arguments for url quickinstall after checking key
This commit is contained in:
parent
c8f54c1b0c
commit
10618ae217
1 changed files with 4 additions and 2 deletions
|
@ -8,8 +8,10 @@ import { showToast } from "@ui/toasts";
|
||||||
|
|
||||||
const showSimpleActionSheet = findByProps("showSimpleActionSheet");
|
const showSimpleActionSheet = findByProps("showSimpleActionSheet");
|
||||||
|
|
||||||
export default () => after("showSimpleActionSheet", showSimpleActionSheet, ([{ key, header: { title: url }, options }]) => {
|
export default () => after("showSimpleActionSheet", showSimpleActionSheet, (args) => {
|
||||||
if (key !== "LongPressUrl") return;
|
if (args[0].key !== "LongPressUrl") return;
|
||||||
|
|
||||||
|
const { header: { title: url }, options } = args[0];
|
||||||
|
|
||||||
let urlType: string;
|
let urlType: string;
|
||||||
if (url.startsWith(PROXY_PREFIX)) {
|
if (url.startsWith(PROXY_PREFIX)) {
|
||||||
|
|
Loading…
Reference in a new issue