mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-31 02:49:56 +02:00
fix: avoid IME input being interrupted in MacOS (#5685)
Co-authored-by: HUYIFU <1138444283@qq.com>
This commit is contained in:
5
site/utils/environment.ts
Normal file
5
site/utils/environment.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
export const IS_MAC =
|
||||
typeof navigator !== 'undefined' && /Mac OS X/.test(navigator.userAgent)
|
||||
|
||||
export const IS_ANDROID =
|
||||
typeof navigator !== 'undefined' && /Android/.test(navigator.userAgent)
|
Reference in New Issue
Block a user