2026-09-02 16:10:57 +08:00

13 lines
312 B
TypeScript

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