mirror of
https://github.com/wahyd4/docsify.git
synced 2026-08-09 21:36:10 +10:00
Correct calculation of whether the mobile browser
This commit is contained in:
+1
-1
@@ -97,6 +97,6 @@ export function getRoute () {
|
||||
}
|
||||
|
||||
export function isMobile () {
|
||||
return /mobile/i.test(navigator.userAgent)
|
||||
return document.body.clientWidth <= 600
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user