mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-13 09:28:14 +08:00
🐛 完善 mihoyobbs: protocol 处理
This commit is contained in:
@@ -32,6 +32,9 @@ export async function parseLink(
|
|||||||
if (url.pathname === "//webview" && url.search.startsWith("?link=")) {
|
if (url.pathname === "//webview" && url.search.startsWith("?link=")) {
|
||||||
return decodeURIComponent(url.search.replace("?link=", ""));
|
return decodeURIComponent(url.search.replace("?link=", ""));
|
||||||
}
|
}
|
||||||
|
if (url.pathname === "//openURL" && url.search.startsWith("?link=")) {
|
||||||
|
return decodeURIComponent(url.search.replace("?link=", ""));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user