bug修改

This commit is contained in:
2025-06-26 15:22:28 +08:00
parent 8f6d2beade
commit dd06b2f01a
3 changed files with 55 additions and 44 deletions

View File

@@ -60,18 +60,17 @@
return 'unknown';
}
}
$(window).ready(function () {
const deviceType = detectDeviceByResolution();
if (deviceType=='tablet') {
window.location.href = '?mtpl=1';
}
})
// $(window).ready(function () {
// if ($(window).width() < 1024) {
// const deviceType = detectDeviceByResolution();
// if (deviceType=='tablet') {
// window.location.href = '?mtpl=1';
// }
// })
$(window).ready(function () {
if ($(window).width() < 1024) {
window.location.href = '?mtpl=1';
}
})
</script>
</head>