Files
uniapp-im-shop/uni_modules/lime-shared/getWindowInfo/index.ts
2026-01-16 00:12:33 +08:00

13 lines
298 B
TypeScript

// @ts-nocheck
export function getWindowInfo():GetWindowInfoResult {
// #ifndef UNI-APP-X
if (uni.getWindowInfo || uni.canIUse('getWindowInfo')) {
return uni.getWindowInfo();
} else {
return uni.getSystemInfoSync();
}
// #endif
// #ifdef UNI-APP-X
return uni.getWindowInfo()
// #endif
}