过滤ios夸克浏览器

This commit is contained in:
al 2024-12-06 19:18:14 +08:00
parent 6e87a6776b
commit 3cffd4066b
1 changed files with 25 additions and 0 deletions

View File

@ -10,6 +10,31 @@ export default function WithAuth(WrappedComponent) {
const pathname = usePathname();
const searchParams = useSearchParams();
useEffect(() => {
var ua = navigator.userAgent.toLowerCase();
if (ua.indexOf("quark") > -1 && ua.indexOf("iphone") > -1) {
// 夸克浏览器
Dialog.show({
title: "提示",
content: "暂时不支持此浏览器请使用Safari访问铁粉空间",
// buttonText: "确认",
bodyStyle: {
maxHeight: "none",
width: "80vw",
position: "fixed",
top: "200px",
left: "10vw",
"--text-color": "#fff",
color: "#fff",
},
// cancelText:"确认",
// confirmText:"取消",
style: {
"--text-color": "#fff",
},
});
}
}, []);
useEffect(() => {
if (searchParams.get("inviter")) {
save("inviter", Number(searchParams.get("inviter")));