Skip to content

Commit

Permalink
fix: app not starting due to isMobileDevice
Browse files Browse the repository at this point in the history
  • Loading branch information
bitroy committed Sep 12, 2024
1 parent 055a4a6 commit 042f870
Show file tree
Hide file tree
Showing 4 changed files with 294 additions and 307 deletions.
7 changes: 0 additions & 7 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,6 @@ if (navigator.userAgent.match(/IEMobile\/10\.0/)) {
document.head.appendChild(msViewportStyle);
}


function isMobileDevice() {
return /Mobi|Android|iPhone|iPad|Windows Phone|BlackBerry|Opera Mini|IEMobile/i.test(
navigator.userAgent
);
}

const tld = getTLD();

const preloadUrl = isMobileDevice()
Expand Down
Loading

0 comments on commit 042f870

Please sign in to comment.