リファクタ等
This commit is contained in:
parent
10f9fd6146
commit
10cd4754fd
6 changed files with 15 additions and 12 deletions
2
src/client/scripts/is-mobile.ts
Normal file
2
src/client/scripts/is-mobile.ts
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
const ua = navigator.userAgent.toLowerCase();
|
||||
export const isMobile = /mobile|iphone|ipad|android/.test(ua);
|
||||
Loading…
Add table
Add a link
Reference in a new issue