1
0
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:
Czy
2024-08-02 01:46:06 +08:00
committed by GitHub
parent a6910b70a0
commit 4381003a25
2 changed files with 27 additions and 3 deletions

View 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)