Skip to content

Commit a5b653f

Browse files
liangdrimeLiang MengJiuqingSong
authored
Fix: make the isSafari env include both iOS and macOS (#3215)
Co-authored-by: Liang Meng <liangmeng@microsoft.com> Co-authored-by: Jiuqing Song <jisong@microsoft.com>
1 parent de131ce commit a5b653f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/roosterjs-content-model-core/lib/editor/core/createEditorCore.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function createEditorEnvironment(
7575
isAndroid: /android/i.test(userAgent),
7676
isIOS: /iPad|iPhone/.test(userAgent),
7777
isSafari:
78-
userAgent.indexOf('Safari') >= 0 &&
78+
userAgent.indexOf('AppleWebKit') >= 0 &&
7979
userAgent.indexOf('Chrome') < 0 &&
8080
userAgent.indexOf('Android') < 0,
8181
isMobileOrTablet: getIsMobileOrTablet(userAgent),

0 commit comments

Comments
 (0)