13 lines
298 B
TypeScript
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
|
|
} |