👽️ 增加 genshinnet 域名处理

This commit is contained in:
目棃
2024-11-13 13:16:04 +08:00
parent eaa07601a5
commit 857d99361a
5 changed files with 27 additions and 27 deletions

View File

@@ -1,7 +1,7 @@
/**
* @file src/utils/linkParser.ts
* @description 处理链接
* @since Beta v0.5.5
* @since Beta v0.6.3
*/
import { emit } from "@tauri-apps/api/event";
@@ -56,7 +56,7 @@ export async function parsePost(link: string): Promise<false | string> {
/**
* @function parseLink
* @since Beta v0.5.5
* @since Beta v0.6.3
* @description 处理链接
* @param {string} link - 链接
* @param {boolean} useInner - 是否采用内置 JSBridge 打开
@@ -140,6 +140,7 @@ export async function parseLink(
"webstatic.miyoushe.com",
"bbs.mihoyo.com",
"qaa.miyoushe.com",
"mihoyo.genshinnet.com",
];
if (prefix.includes(url.hostname) && !useInner) {
const openCheck = await showConfirm({