提交 1d1bee09 编写于 作者: Q qiang

fix: 修复 iOS 部分情况获取 windowWidth 不正确(980)的问题

上级 b664da7e
......@@ -14,12 +14,12 @@ const isIOS = /iphone|ipad|ipod/i.test(ua)
* 获取系统信息-同步
*/
export function getSystemInfoSync () {
var windowWidth = window.innerWidth
var windowHeight = window.innerHeight
var screen = window.screen
var pixelRatio = window.devicePixelRatio
var screenWidth = screen.width
var screenHeight = screen.height
var windowWidth = Math.min(window.innerWidth, document.documentElement.clientWidth, screenWidth)
var windowHeight = window.innerHeight
var language = navigator.language
var statusBarHeight = safeAreaInsets.top
var osname
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册