Correct calculation of whether the mobile browser
This commit is contained in:
parent
74ee0cf6bc
commit
3af5ca5cd4
2 changed files with 9 additions and 1 deletions
|
|
@ -1,3 +1,11 @@
|
||||||
|
## 1.1.5
|
||||||
|
### Features
|
||||||
|
- Add table style
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
- Not fixed position of hte navbar in the mobile browser
|
||||||
|
- Correct calculation of whether the mobile browser
|
||||||
|
|
||||||
## 1.1.4
|
## 1.1.4
|
||||||
### Bug fixes
|
### Bug fixes
|
||||||
- Fixed chinese auchor link
|
- Fixed chinese auchor link
|
||||||
|
|
|
||||||
|
|
@ -97,6 +97,6 @@ export function getRoute () {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function isMobile () {
|
export function isMobile () {
|
||||||
return /mobile/i.test(navigator.userAgent)
|
return document.body.clientWidth <= 600
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue