Upgrade build libs and fixed lints (#235)

This commit is contained in:
Germey authored and GitHub committed 2025-07-27 15:09:06 +08:00
1 parent 8bf60b4b05
commit 03244e096f
197 files changed
+3924 -3714

No files matched your search

+4 -4
View File
@@ -4,16 +4,16 @@ import { getLocale } from '@/i18n';
import { applyTheme } from './theme';
import store from '@/store';
import { IToken } from '@/models';
import psl from 'psl';
import { parse } from 'psl';
import { BASE_HOST_HUB, LOCALE_CURRENCY_MAPPING } from '@/constants';
import { isOfficial, isSubOfficial, isWechatBrowser } from './is';
export const getDomain = (host: string = window.location.hostname) => {
const parsed = psl.parse(host);
if (parsed.error) {
const parsed = parse(host);
if ('error' in parsed && parsed.error) {
return host;
}
if (!parsed.listed) {
if (!('listed' in parsed) || !parsed.listed) {
return host;
}
if (parsed.domain === host) {