Skip to content

Commit ae56692

Browse files
Copilotskylersaleh
andcommitted
Simplify mobile detection logic
Co-authored-by: skylersaleh <7118296+skylersaleh@users.noreply.github.com>
1 parent 7f8db92 commit ae56692

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shell.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ <h2>Install SkyEmu</h2>
195195

196196
function isMobileDevice() {
197197
return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ||
198-
(navigator.maxTouchPoints && navigator.maxTouchPoints > 0);
198+
navigator.maxTouchPoints > 0;
199199
}
200200

201201
function isStandalone() {

0 commit comments

Comments
 (0)