mirror of
https://github.com/yinxin630/fiora.git
synced 2026-06-13 21:00:45 +08:00
* Refactor as monorepo * Fix server * Fix client * Fix not fire message event error * Fix CI scripts * Update install doc * Fix bin * Refactored the directory structure to the final version * Fix ts type error * Fix lint error * Fix unit test error * Update .gitignore
8 lines
173 B
TypeScript
8 lines
173 B
TypeScript
const UA = window.navigator.userAgent;
|
|
|
|
export const isiOS = /iPhone/i.test(UA);
|
|
|
|
export const isAndroid = /android/i.test(UA);
|
|
|
|
export const isMobile = isiOS || isAndroid;
|