You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code in the customkeyboard.js file to determine the ios platform: var IS_IOS = /iphone|ipad|ipod/i.test(window.navigator.userAgent); causes window undefined error when using server rendering
What is expected?
Add platform judgment, do not report the error of window undefined
Version
2.1.11
Environment
mac os 10.13 , chrome
Reproduction link
https://github.com/ant-design/ant-design-mobile
Steps to reproduce
customkeyboard.js文件中判断ios平台的相关代码: var IS_IOS = /iphone|ipad|ipod/i.test(window.navigator.userAgent); 导致在使用服务端渲染时 会出现window undefined 的错误
What is expected?
添加平台判断,不报 window undefined 的错
What is actually happening?
会因为window undefined 报错
The text was updated successfully, but these errors were encountered: