Merge branch 'main' into example

This commit is contained in:
Soybean
2024-10-17 17:24:49 +08:00
8 changed files with 34 additions and 11 deletions

View File

@@ -113,7 +113,7 @@ const local: App.I18n.Schema = {
},
tab: {
visible: 'Tab Visible',
cache: 'Tab Cache',
cache: 'Tag Bar Info Cache',
height: 'Tab Height',
mode: {
title: 'Tab Mode',

View File

@@ -113,7 +113,7 @@ const local: App.I18n.Schema = {
},
tab: {
visible: '显示标签栏',
cache: '缓存标签页',
cache: '标签栏信息缓存',
height: '标签栏高度',
mode: {
title: '标签栏风格',

View File

@@ -1,5 +1,7 @@
export function isPC() {
const agents = ['Android', 'iPhone', 'webOS', 'BlackBerry', 'SymbianOS', 'Windows Phone', 'iPad', 'iPod'];
return !agents.includes(window.navigator.userAgent);
const isMobile = agents.some(agent => window.navigator.userAgent.includes(agent));
return !isMobile;
}