Skip to content

Commit 8c80a8c

Browse files
committed
Fix: app migration wuxiap -> wuxiabox
1 parent 43d7b69 commit 8c80a8c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/routes/guides/upgrade/index.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,11 @@ export default function Upgrade() {
8888
const findSuitedPlugin = (novel: OldNovelInfo) => {
8989
let novelSiteUrl;
9090
try {
91-
novelSiteUrl = new URL(novel.sourceUrl);
91+
const url = novel.sourceUrl.replace(
92+
"https://www.wuxiap.com/",
93+
"https://www.wuxiabox.com/"
94+
);
95+
novelSiteUrl = new URL(url);
9296
} catch {
9397
return undefined;
9498
}

0 commit comments

Comments
 (0)