Rework mobile device detection
This commit is contained in:
@@ -39,7 +39,7 @@ const ogImage = "https://timmypidashev.dev/og-image.jpg";
|
||||
<link rel="sitemap" href="/sitemap-index.xml" />
|
||||
<ClientRouter />
|
||||
<script is:inline>
|
||||
if (window.innerWidth < 1024) {
|
||||
if (window.innerWidth < 1024 || navigator.maxTouchPoints > 0) {
|
||||
document.addEventListener('click', function(e) {
|
||||
var a = e.target.closest('a[href]');
|
||||
if (a && a.href && !a.target && a.origin === location.origin) {
|
||||
|
||||
Reference in New Issue
Block a user