diff --git a/src/components/WishImportModal.svelte b/src/components/WishImportModal.svelte index ac0beba2..2e651c3c 100644 --- a/src/components/WishImportModal.svelte +++ b/src/components/WishImportModal.svelte @@ -93,7 +93,12 @@ processingLog = true; try { - url = new URL(genshinLink); + if (selectedType === 'android') { + const urlString = genshinLink.match(/https:\/\/.*\//g); + url = new URL(urlString); + } else { + url = new URL(genshinLink); + } } catch (err) { pushToast('Invalid link, please check it again', 'error'); } @@ -603,12 +608,12 @@