diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2021-02-17 21:34:20 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2021-02-17 21:34:20 +0900 |
| commit | 10cd4754fd5b1e30e46bfdeb0ad43901b6fbd449 (patch) | |
| tree | 45993e72fc830697672cf3121242406d1fffebec /src/client/scripts/is-mobile.ts | |
| parent | wip (diff) | |
| download | sharkey-10cd4754fd5b1e30e46bfdeb0ad43901b6fbd449.tar.gz sharkey-10cd4754fd5b1e30e46bfdeb0ad43901b6fbd449.tar.bz2 sharkey-10cd4754fd5b1e30e46bfdeb0ad43901b6fbd449.zip | |
リファクタ等
Diffstat (limited to 'src/client/scripts/is-mobile.ts')
| -rw-r--r-- | src/client/scripts/is-mobile.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/scripts/is-mobile.ts b/src/client/scripts/is-mobile.ts new file mode 100644 index 0000000000..60cb59f91e --- /dev/null +++ b/src/client/scripts/is-mobile.ts @@ -0,0 +1,2 @@ +const ua = navigator.userAgent.toLowerCase(); +export const isMobile = /mobile|iphone|ipad|android/.test(ua); |